Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- kosta@Zeus:/etc/rsyslog.d# cat sshd.conf
- # Create a socket for the sshd chrooted sftp user.
- $AddUnixListenSocket /home/db/dev/dev/log
- # Log internal-sftp in a separate file.
- :programname, isequal, "internal-sftp" -/home/upkeep/logs/sftp.log
- :programname, isequal, "internal-sftp" ~
- kosta@Zeus:/etc/ssh# tail -n 8 sshd_config
- # Enable secure ftp (with user 'jailed' to /home/db/dev directory).
- Subsystem sftp internal-sftp -l VERBOSE
- Match user sftpuser
- ChrootDirectory /home/db/dev
- AllowTCPForwarding no
- X11Forwarding no
- ForceCommand internal-sftp -l VERBOSE
Add Comment
Please, Sign In to add comment