Login to AWS Cloud9 environment …where is my keypair?

I created an externally accessible cloud9 environment via the GUI but it never asked for a Keypair…How can i retrieve and login?

1 Answers

  • #496
    Up
    0
    Down

    I created an externally accessible cloud9 environment via the GUI but it never asked for a Keypair…How can i retrieve and login?

    #497
    Up
    0
    Down

    You dont have to setup a KeyPair the same way as in EC2.

    1- First allow your IP through the instance Security Group.
    In AWS Console, find the corresponding EC2 instance.

    In the bottom panel, under the security section, in Security groups row, click on the link to go to associated security group.

    You should now be in Security Groups section. In the bottom panel, under the Inbound tab, click Edit and add:

    Type: SSH
    Source: My IP
    and click Save.

    2- Add you public Key to the Cloud9 instance you created

    In Cloud9 terminal, add your public key to ~/.ssh/authorized_keys. Don’t replace the existing keys or elsewise Cloud9 IDE wouldn’t be able to connect to the instance.

    You can now SSH into the Cloud9-managed instance using ssh ec2-user@, or ssh ubuntu@ if using Ubuntu AMI, for other AMIs see default user name for the AMI

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.