hi All,
i need to connect(sftp) from serverA to serverB via rsa algorithm. But i can not success this.
i did like that:
On ServerA:
#ssh-keygen -t rsa
after running this command, "id_rsa" and "id_rsa.pub" files were generated. i checked.there is private key in id_rsa file and public key in id_rsa.pub file.
#ssh user@serverB mkdir -p .ssh
i checked that on serverB .ssh directory was generated.
#cat .ssh/id_rsa.pub | ssh user@serverB 'cat >> .ssh/authorized_keys'
i checked that public key had been sent to authorized_keys file which is in .ssh directory,serverB
but when i want to connect from serverA to serverB like that
on server A it asked me password
i dont understand why
# sftp user@serverB
user@serverB's password
Are there any other way connect from one server to another server without password?
Thanks.