Internal SFTP Settings

Posted by matt ryan on Server Fault See other posts from Server Fault or by matt ryan
Published on 2010-11-04T18:10:11Z Indexed on 2012/10/19 5:06 UTC
Read the original article Hit count: 574

Filed under:
|
|
|
|

Goal: to limit user access to home directory and symlinked directories in home.

I tried the following configuration in sshd_config

# Subsystem sftp /usr/lib/openssh/sftp-server
Subsystem sftp internal-sftp

Match user matt
     ChrootDirectory %h
     X11Forwarding no
     AllowTcpForwarding no
     ForceCommand internal-sftp

and then restarted sshd. User can't login using the correct password. Connection refused authentication failed.

© Server Fault or respective owner

Related posts about linux

Related posts about ubuntu