How to generate SSH keys and implement for key authentication.
login to local machine with user you will be using for connect to remote.
1. generate keys:
ssh-keygen -t dsa
2. copy id_dsa.pub to remote machine to /tmp directory
scp ~/.ssh/id_dsa.pub remote_machine:/tmp
3. login to remote machine and append new key to authorized_keys2 file in home folder
cat /tmp/id_dsa.pub >> ~/.ssh/authorized_keys2
4. log out and that it is.
You can try with:
and you will be connected to remote server without password.