Connecting to amazon aws linux server by ssh on mac

Linux 15 ก.ค. 2017

You’ll want to put the keypair in {your home directory}/.ssh . If that folder doesn’t exist, create it. Once you put the keypair in there you have to change the permissions on the file so only your user can read it. Launch the terminal and type

chmod 600 ~/.ssh/

That limits access to the file, and then to limit access to the folder type

chmod 700 ~/.ssh

You have to limit the access because the OpenSSH protocol won’t let you use a key that other’s can view.

Then to log into your instance, from the terminal you would enter

ssh -i /.ssh/ [email protected]

ที่มา: https://stackoverflow.com/questions/14229846/connecting-to-amazon-aws-linux-server-by-ssh-on-mac

แท็ก

Onyx

Just a middle-aged programmer, Can do many things but not the most.