On Sat, Aug 7, 2010 at 8:55 PM, Rony wrote:
I just have one query. How will it sequentially ask for passwords and where will the ssh key be stored? If I get the key from one remote host into my client machine, how will the other host gain access on that key. Unless of course the same key is set up manually in advance on all machines.
If keys are not setup, it will sequentially ask for the passwords: [user3@host3 ~]$ scp user1@host1:file user2@host2:. user1@host1's password: user2@host2's password:
If you want to use key based authentication then you need to add user3's public key in user1's authorized keys and user1's public key in user2's authorized keys.
-- Regards Osric Xavier Fernandes