I need SSH access to an Amazon EC2 instance running Ubuntu 10.4. All I have is the Amazon username and password. Any ideas?
To setup Ubuntu on AWS, please follow the following steps:
To access the instance via SSH, run:
Connect to Linux box by specifying your PEM file, e.g.
ssh -i "file.pem" ubuntu@x.x.x.x
Make sure your PEM file has 600 permission (chmod 600 file.pem).
If you're running VPC instance, and your security group is correct (with the right rules) and it still doesn't work, in VPC section check your subnet which should be attached to your VPC (both used by your instance) and setup new rule in Route Table that has 0.0.0.0/0 as Destination and your Internet Gateway as Target.
For more details check: Troubleshooting Connecting to Your Instance
See also: Possible reasons for timeout when trying to access EC2 instance