django-orchestra/scripts/services/rssh.md

18 lines
411 B
Markdown
Raw Normal View History

2014-10-02 15:58:27 +00:00
Restricted Shell for SCP and Rsync
==================================
1. apt-get install rssh
2. Enable desired programs
```bash
sed -i "s/^#allowscp/allowscp/" /etc/rssh.conf
sed -i "s/^#allowrsync/allowrsync/" /etc/rssh.conf
sed -i "s/^#allowsftp/allowsftp/" /etc/rssh.conf
```
2. Enable the shell
```bash
2014-10-03 14:02:11 +00:00
ln -s /usr/bin/rssh /bin/rssh
2014-10-02 15:58:27 +00:00
echo /bin/rssh >> /etc/shells
```