msgbartop
A cronological documentation test project, nothing serious, really!
msgbarbottom

28 Nov 07 Deny SSH- but allow SFTP access

Posted by

This is an alternative way of limiting the SSH access to only SFTP explained in my How to restrict users to SFTP only instead of SSH post.

Edit your /etc/sshd_config file and change your settings like this

Match User username
AllowTcpForwarding no
X11Forwarding no
ForceCommand /usr/libexec/sftp-server -l INFO

Replace username with the user name you would limit the SSH access for.

Tags: ,

Leave a Comment

You must be logged in to post a comment.