django-orchestra-test/scripts/services/rssh.md
2014-10-03 14:02:11 +00:00

411 B

Restricted Shell for SCP and Rsync

  1. apt-get install rssh

  2. 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
    
  3. Enable the shell

    ln -s /usr/bin/rssh /bin/rssh
    echo /bin/rssh >> /etc/shells