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. |
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. |