troubleshooting Question

Allowing FTP,SFTP and SCP while blocking ssh

Avatar of sandeep_th
sandeep_th asked on
Linux
6 Comments1 Solution1865 ViewsLast Modified:
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?



ASKER CERTIFIED SOLUTION
CetusMOD

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros