Skip to content

Instantly share code, notes, and snippets.

@dleone81
Last active April 11, 2018 09:44
Show Gist options
  • Save dleone81/993f400d2c0fbe1c20cb34dc469aba72 to your computer and use it in GitHub Desktop.
Save dleone81/993f400d2c0fbe1c20cb34dc469aba72 to your computer and use it in GitHub Desktop.
SFTP Ubuntu 14 LTS
# https://www.digitalocean.com/community/tutorials/how-to-enable-sftp-without-shell-access-on-ubuntu-16-04
# https://askubuntu.com/questions/79565/how-to-add-existing-user-to-an-existing-group
# mount --bind /path/target /var/sftp/uploads
sshd_config add at the bottom of file
Match User USERNAME
ForceCommand internal-sftp
PasswordAuthentication yes
ChrootDirectory /var/sftp
PermitTunnel no
AllowAgentForwarding no
AllowTcpForwarding no
X11Forwarding no
# then
service ssh reload
service ssh restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment