Warning: Undefined array key "action" in /home/bakers/html/entryreply.php on line 5

Warning: Undefined variable $output in /home/bakers/html/entryreply.php on line 50

Warning: Undefined array key "EntrySubject" in /home/bakers/html/entryreply.php on line 51

Warning: Undefined variable $logintext in /home/bakers/html/entryreply.php on line 97

Warning: Undefined variable $reply_name in /home/bakers/html/entryreply.php on line 103

Warning: Undefined variable $reply_email in /home/bakers/html/entryreply.php on line 104
Perturb.org - interesting technology related things from around the internet

Restrict users to sftp/scp only, no interactive shell

I have a web server that I allow people to access via ftp. I'd like to allow people to sftp/scp in as well, but I do not want to give them interactive shell access via ssh. RSSH to the rescue! Once installed just set the user's shell to /usr/bin/rssh and put them in the rsshusers group.
  1. yum install rssh
  2. Add /usr/bin/rssh to /etc/shells
  3. Edit /etc/rssh.conf and uncomment allowscp and allowsftp
  4. usermod -G rsshusers -s /usr/bin/rssh whatever_username


Note: Replies will be formatted with PHP Markdown Extra syntax.

Name: Email (Not Required):
 
Logged IP: 3.227.235.216
To prevent spam please submit by clicking the kitten: