sftp only access (no shell access)
0
1 2 |
groupadd sftponly_group useradd -d /home/sftp_dir/ -g sftponly_group -s /bin/false sftp_user |
Add the following lines to /etc/ssh/sshd_config
1 2 3 4 5 |
Match Group sftponly_group ChrootDirectory %h AllowTcpForwarding no X11Forwarding no ForceCommand internal-sftp -l INFO -f AUTH |
Make sure to restart sshd daemon.