Assume we have two systems, one is called frog and one is called fish, and you want to login fish on frog without password.
Here's what you should do.
You're already log into frog.
# ssh-keygen -tdsa
then follow the prompts and it will generate two files under .ssh/
called id_dsa and id_dsa.pub
then you copy the contents of id_dsa.pub and paste it into the file .ssh/authorized_keys on fish, and save it.
use "ssh-copy-id user@destHost" it will copy the key to dest server automatically
ReplyDelete