417 B
417 B
Restricted Shell for SCP and Rsync
-
apt-get install rssh
-
Enable desired programs
sed -i "s/^#allowscp/allowscp/" /etc/rssh.conf sed -i "s/^#allowrsync/allowrsync/" /etc/rssh.conf sed -i "s/^#allowsftp/allowsftp/" /etc/rssh.conf
-
Enable the shell
ln -s /usr/local/bin/rssh /bin/rssh echo /bin/rssh >> /etc/shells