Operating System - HP-UX
1752579 Members
3934 Online
108788 Solutions
New Discussion юеВ

Re: SSH RSA Public Key Authentication for SFTP connectivity

 
SOLVED
Go to solution
Narendra Uttekar
Regular Advisor

SSH RSA Public Key Authentication for SFTP connectivity

Hi,
I have generated the RSA keys through ftptest user account on HP-UX 11i V1 system. Now i have copied that RSA public key i.e. id_rsa.pub to other HP-UX 11i V1 system. And i have copied the content of id_rsa.pub to /.ssh/known_hosts file.
And then i have login as ftptest user account and tried connecting the other HP-UX server on which i have copied the id_rsa.pub key through SFTP but it is asking me for the password. If i key in the password i am able to SFTP. But i want it should not ask me the password please let me know where i have to make the changes so SFTP will work without password i.e. through SSH RSA Public Key Authentication.

Thanks,
Narendra
3 REPLIES 3
johnsonpk
Honored Contributor
Solution

Re: SSH RSA Public Key Authentication for SFTP connectivity

Hi Narendra,

Do this on remote host

login as ftptest to remote system
cat id_rsa.pub >> $HOME/.ssh/authorized_keys
chmod 600 $HOME/.ssh/authorized_keys

Note :id_rsa.pub should be generated on the source machine from which u are trying to login without password

regards!
Johnson
Burak Topal
Frequent Advisor

Re: SSH RSA Public Key Authentication for SFTP connectivity

Hi Narendra,

take a look at attachment..

burak,
Narendra Uttekar
Regular Advisor

Re: SSH RSA Public Key Authentication for SFTP connectivity

Thanks for the solution now i am able to SFTP without password.