I have two questions about setting up ssh on Linux workstations:
1. Basically what I did was to setup a ssh pub key so that host A didn't require a password for ssh to host B. From host A, I used ssh-keygen -t dsa to create default named 2 keys (pairs) in ~/.ssh/ directory (id_dsa and id_dsa.pub). When prompted for paraphase, I just pressed enter to set it empty. Then I copied (scp) and appended (cat) the public key (id_dsa.pub) into host's /.ssh/authorized_keys2. Eveything is OK when I ssh from host A to host B (without asking password); however, my first question is how I can ssh from host B to host A without password.
2. Afterward, how do I set up ssh without password from host B to host C? Do I need to use ssh-keygen in both host B and C? How does this affect the ssh between host A and B?
Thanks for all ideas on how to do SSH!
1. Basically what I did was to setup a ssh pub key so that host A didn't require a password for ssh to host B. From host A, I used ssh-keygen -t dsa to create default named 2 keys (pairs) in ~/.ssh/ directory (id_dsa and id_dsa.pub). When prompted for paraphase, I just pressed enter to set it empty. Then I copied (scp) and appended (cat) the public key (id_dsa.pub) into host's /.ssh/authorized_keys2. Eveything is OK when I ssh from host A to host B (without asking password); however, my first question is how I can ssh from host B to host A without password.
2. Afterward, how do I set up ssh without password from host B to host C? Do I need to use ssh-keygen in both host B and C? How does this affect the ssh between host A and B?
Thanks for all ideas on how to do SSH!