LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   sftp user with limited ssh permissions to autologin using publickey (https://www.linuxquestions.org/questions/linux-security-4/sftp-user-with-limited-ssh-permissions-to-autologin-using-publickey-838816/)

blazingrock4u 10-18-2010 09:01 AM

sftp user with limited ssh permissions to autologin using publickey
 
hi

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.

Hangdog42 10-18-2010 11:52 AM

Can I ask why the sftpuser needs to be logged in? If you set out the problem you're trying to solve, maybe there is an alternative way.


All times are GMT -5. The time now is 06:35 AM.