Last active
April 11, 2018 09:44
-
-
Save dleone81/993f400d2c0fbe1c20cb34dc469aba72 to your computer and use it in GitHub Desktop.
SFTP Ubuntu 14 LTS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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