HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

Question about SSH - SFTP

 
hamidr
Frequent Advisor

Question about SSH - SFTP

Hi dear memebers.

I want to disable ssh login while allowing users to use the inernal sftp functionality supported by ssh service. Is there anyway I can achieve this?
I must mentions that I'm not trying to use FTP service. I want to use the SFTP provided by SSH.
Regards.
4 REPLIES
Michal Kapalka (mikap)
Honored Contributor

Re: Question about SSH - SFTP

hi,

check this link :

http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html

with a restricted shell it is possible.

mikap
Ivan Ferreira
Honored Contributor

Re: Question about SSH - SFTP

Please refer to this link:

http://www.debian-administration.org/articles/94
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
RColliard
Occasional Visitor

Re: Question about SSH - SFTP

Starting with OpenSSH 4.9p1, it is possible to configure chroot by default and limit SFTP access.

Have a look here :
http://blogs.techrepublic.com.com/opensource/?p=229
Tim Nelson
Honored Contributor

Re: Question about SSH - SFTP

Just make the shell for the user /opt/ssh/utils/sftponly