I have an existing EC2 t2.micro
instance. I am able to connect to it from my local machine. Now I want to setup Cloud9 on it but i am having issues. Here are the steps that I have followed but getting error
- I logged into
https://console.aws.amazon.com/cloud9
- I clicked on Create new Environment
- I selected Connect and run in remote server (SSH)
- In User, I have tried with both
ec2-user
androot
- In the url, I have tried copying the url which i normally use to connect from my localhost. The url is
ec2-user@ec2-xx-xxx-xxx-xx.compute-1.amazonaws.com
- I copied the ssh file from the website into ec2 hosts location
~/.ssh/authorized_keys
on new line
[ec2-user@ip-xxx-xx-xx-xxx ~]$ wc -l ~/.ssh/authorized_keys
2 /home/ec2-user/.ssh/authorized_keys
And whenever i click on next, I get an error that the Cl9 wasn't able to connect with <username>@<ip_address>