Wait, what?

Locking down SSH with rssh

, , ,

Want to setup a user account on your server to allow scp/sftp access but not shell (ssh) with openSSH?

Use your favorite package manager to install the ‘rssh’ package:

apt-get install rssh


Then edit the config file in your favorite text editor to uncomment sftp and scp (and whatever you’d like):

nano /etc/rssh.conf


Now create a user account with the shell set to rssh (/usr/bin/rssh) and set a password for the account:

useradd -m -g users -s /usr/bin/rssh usernamehere
passwd usernamehere


Tada! The newly created user will now be allowed to use sftp and scp, but not allowed to ssh into your server.

SHOUTcast Daemon in LinuxRemove the Bullseye from your newly Jailbroken iDevice

Write a comment

New comments have been disabled for this post.