Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- if [ "$SSH_ORIGINAL_COMMAND" = "/usr/lib/openssh/sftp-server" ]; then
- /usr/lib/openssh/sftp-server
- exit $?
- fi
- echo 'This account is restricted to sftp only.'
- exit 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement