SFTP server with VSFTPD
- Chris Speed
- Apr 29, 2020
- 1 min read
Updated: Nov 23, 2020
$ sudo apt install ssh
$ sudo nano /etc/ssh/sshd_config
and append the following to the end of the file:
Match group sftp ChrootDirectory /home X11Forwarding no AllowTcpForwarding no ForceCommand internal-sftp
$ sudo service ssh restart
$ sudo addgroup sftp Adding group `sftp' (GID 1001) ... Done.
$ sudo useradd -m sftpuser -g sftp
$ sudo passwd sftpuser Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
$ sudo chmod 700 /home/sftpuser/
Comentarios