Connecting to an EC2 Instance
Connecting to an EC2 instance on AWS
Source: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/replacing-key-pair.html
- Open up the EC2 control panel and use all the defaults, the only to setup manually is a private key which will download to your local computer, you will have to upload this or in other words add this key to your ssh client that you wish to connect to the ec2 instance with. By default the vps doesn't have a password and relies on the key to be able to connect to the instance.
- Run this on your machine you wish to connect from
eval `ssh-agent -s` ssh-add <path to private key> - use
ssh username@instance_addressto connect,