Hi,
I want to establish a passwordless sftp between the two servers. I've searched the net and know the steps to be taken; which are as follows:
[local_user@local_server.com]$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (~/.ssh/id_rsa):
~/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in ~/.ssh/id_rsa.
Your public key has been saved in ~/.ssh/id_rsa.pub.
The key fingerprint is:
16:e9:ag:29:34:45:7b:3f:ab:5b:1a:fb:37:cc:11:9f local_user@local_server.com
And then I copied the public key in ~/.ssh/id_rsa.pub to ~/.ssh/authorized_keys file at remote\_user@remote_server.com
(couldn't scp the pub key as it says "permission denied")
Having done the above steps I tried to sftp from local_server to remote_server as follows:
[local_user@local_server.com]$ sftp remote_user@remote_server.com
remote_user@remote_server.com's password:
NOTE: The permission of ~/.ssh folder at remote server is 755 and that of authorized_keys is 600
It still is asking for password!! :wall:. Please help!!
-dips