SSH into AWS Cloud9 Environment

Cloud9 is managing the underlying EC2 for you so you won't get any extra charges. A terminal is already provided by AWS but you could follow this procedure if you still want to get SSH access to a Cloud9 environment.


You can SSH into a Cloud9 environment created through Cloud9. The steps are similar to sharing a running app over the internet in the docs, but instead of sharing the app, you share the SSH server.

  1. In AWS Console, find the corresponding EC2 instance.

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

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

    • Type: SSH
    • Source: Anywhere

    and click Save.

  4. 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.

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