bwilliams said:
sftp-server is a subset of openssh. You will still have to have an actual shell configured for your account (other than /bin/false or /sbin/nologin) to use sftp-server.
You probably didn't read my post very carefully.
In /etc/passwd, set sftp-server as the user's SHELL
Yes...
Typo in the above post.. should be /usr/libexec/openssh/sftp-server for redhat-ish machines...
also... check this out: http://www.sublimation.org/scponly/
Simple steps to setting up your system to allow SFTP but not shell access:
1) add /usr/libexec/openssh/sftp-server to your /etc/shells
2) change the users' shell in /etc/passwd to /usr/libexec/openssh/sftp-server
Do a locate sftp-server on a non-redhat system if it's not located in...
Hi
From you post it looks like you're trying to add a user and only allow them to transfer files.
First: you want to use SFTP to do this. This should already be installed on your linux machine. The sftp-server is in /usr/libexec/sftp-server if you are on a redhatish machine.
So, here's the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.