sftp user with limited ssh permissions to autologin using publickey
I have a scenario wherein i want the user "sftpuser" to auto-login to the target server without asking for password. At the same time I don't want the user to be restricted for SFTP purpose only.
Currently the sftpuser on target server is defined as below:
sftpuser:x:12345:12345:SFTP Only Account:/u01/stage:/usr/libexec/openssh/sftp-server
Because the home for this sftpuser is set as /u01/stage/, I had created a .ssh directory in /u01/stage/ and updated the "authorized_keys" using the public key from source server.
But ssh sftpuser@sourceserver is failing to login and I suspect its because the sftpuser's shell is defined as "/usr/libexec/openssh/sftp-server"
Could someone help in the way forwards, please.
Thanks in anticipation.
Last edited by blazingrock4u; 10-18-2010 at 10:06 AM.