Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # There's obviously a lot more configuration in sshd_config.
- # These are just the important pieces for this project.
- # $HOME/.ssh must be owned by root, group must match the related users
- # $HOME/.ssh/authorized_keys.$USER must be mode 0444
- # If you still get login failures, check /var/log/auth.log
- # NOTE: ln -s /root/.ssh/authorized_keys /root/.ssh/authorized_keys.root
- # ... or you won't be able to log in after you restart SSH ;)
- AuthorizedKeysFile %h/.ssh/authorized_keys.%u
- # We use keys exclusively.
- PasswordAuthentication no
- # Restrict access to chroot for sftp users
- Subsystem sftp internal-sftp
- Match Group sftp
- ChrootDirectory %h
- ForceCommand internal-sftp
- AllowTcpForwarding no
- # rsync_shell: http://pastebin.com/HGSfn18H
- Match Group rsync
- AllowTcpForwarding no
- ForceCommand /usr/local/bin/rsync_shell
Advertisement
Add Comment
Please, Sign In to add comment