Skip to content

Instantly share code, notes, and snippets.

@vallettea
Last active August 29, 2015 14:18
Show Gist options
  • Select an option

  • Save vallettea/9ea255e0a2d07c1dad0f to your computer and use it in GitHub Desktop.

Select an option

Save vallettea/9ea255e0a2d07c1dad0f to your computer and use it in GitHub Desktop.
Configure a user for scp only
sudo apt-get install rssh
sudo useradd -m -d /data/guest -s /usr/bin/rssh guest
# ask for public key
sudo mkdir /data/guest/.ssh
sudo vim /data/guest/.ssh/authorized_keys # and copy it here
# edit /etc/rssh.conf and uncomment allowscp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment