baniol
3/4/2013 - 9:14 PM

ssh-keygen && copy to a remote server

ssh-keygen && copy to a remote server

# 1) generate ssh key on your local machine
ssh-keygen

#2) copy your public key to a remote machine with port number
ssh-copy-id '-p XXXXX -i ~/.ssh/id_rsa_your_key.pub username@host'