I need SSH access to an Amazon EC2 instance running Ubuntu 10.4. All I have is the Amazon username and password. Any ideas?
First change permission of pem file by
chmod 400 path/to/key_pair.pem
Inside the file ~/.ssh/config add the following lines, at the top of the file
Host AWS
Hostname myserver.com
User myuser
IdentityFile path/to/.pem/file
port 22
Hostname take IP or link of server, User take username of server and Identity file is file downloaded from AWS when you created instance. Just Run the following command in terminal
ssh AWS
and enjoy it!
Note: To navigate into .ssh
folder. First press Ctrl + H
in home folder to display all the hidden files and finally cd .ssh