-
-
Save vallettea/9ea255e0a2d07c1dad0f to your computer and use it in GitHub Desktop.
Configure a user for scp only
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
| 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