Hi
I wish to set up sftp between server1 and server2. File needs to be moved from server1 to server2.
I have logged into server1 with my credentials and cd to .ssh
using ssh-keygen -t dsa , i have generated the keys and stores in id_dsa.pub and id_dsa file.
Later i have moved the contents of pub file to authorized_keys on server2 and now SFTP is working.
Now i have removed everything in my .ssh directory and create new keys, but this time i have saved the private and pub files as server1-id_dsa.
Now pub file is server1-id_dsa.pub and private is server1-id_dsa. I have moved the contents of pub file to authorized_keys on server2.
Now when i try to connect (SFTP ), it is asking me for a password.
Will SFTP only looks at id_dsa and id_dsa.pub files?
If yes, then how can we handle multiple connections to multiple servers?
Can i not use a different file name for my pub and private files?