SSH Authentication with Public-Key

Posted on Fri 18 February 2011

Crete Private and Public key on user "phn":

ssh-keygen -t rsa

without phrase.
Simple copy to with command:

ssh-copy-id -i ~/.ssh/

Another way to copy key manualy on in home directory of user "phn":

mkdir .ssh
chmod 700 .ssh
vi .ssh/authorized_keys
chmod 600 .ssh/authorized_keys

Verification from



ssh -o stricthostkeychecking=no

should work without password.