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
|
2015-04-27 05:44:18 -04:00
|
|
|
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
|