Hi,
Our requirement is to allow a user to have ftp(& also scp) access while at the same time disallowing ssh access to a SuSE Linux 9.0 box. So I created the testuser and in the /etc/passwd file changed the shell from /bin/bash to /bin/false. This did the trick for ftp .... but the problem is when I try to scp to this machine using:
scp filename testuser@
www.oursite.com:
I get an error saying "lost connection".
If I use a GUI ftp client(like winscp), then the error is more descriptive, it says:
"Error skipping startup message. Your shell is probably incompatible with the application(BASH is recommended)"
Is it possible at all to allow scp while keeping ssh blocked? If yes, how?
"How do I allow a user to use scp or sftp, but not allow regular ssh (i.e. forbid getting a shell or running other programs)?"