Skip to content

Instantly share code, notes, and snippets.

View spamr's full-sized avatar

Joseph Barreca spamr

  • New York
View GitHub Profile
@spamr
spamr / sftp-ubuntu.md
Created January 26, 2016 01:50 — forked from joshellington/sftp-ubuntu.md
Basic tutorial for creating a SFTP-only user on Ubuntu 9.04 and greater

Adding SFTP-only user to Ubuntu Server

To add a SFTP-only user, you'll need to make sure your SSH config settings are correct, add a new user/group and set permissions for your new user. For step-by-step directions, see below. Omit sudo if you're logged in as root.

Directions

  1. Edit /etc/ssh/sshd_config and make sure to add the following at the end of the file:

     Match group filetransfer
    

ChrootDirectory %h