0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-11-17 12:51:33 -05:00
atmoz-sftp/files/sshd_config

23 lines
477 B
Text
Raw Normal View History

2016-06-02 08:56:30 -04:00
# Secure defaults
# See: https://stribika.github.io/2015/01/04/secure-secure-shell.html
Protocol 2
HostKey /etc/ssh/ssh_host_ed25519_key
HostKey /etc/ssh/ssh_host_rsa_key
# Faster connection
# See: https://github.com/atmoz/sftp/issues/11
UseDNS no
2016-06-02 08:56:30 -04:00
# Limited access
2014-10-07 15:34:24 -04:00
PermitRootLogin no
2014-10-16 16:07:39 -04:00
X11Forwarding no
AllowTcpForwarding no
2016-06-02 08:56:30 -04:00
# Force sftp and chroot jail
Subsystem sftp internal-sftp
2014-10-16 16:07:39 -04:00
ForceCommand internal-sftp
2016-06-02 08:56:30 -04:00
ChrootDirectory %h
# Enable this for more logs
#LogLevel VERBOSE