File: //etc/ssh/sshd_config
# IP/Port binding:
Port 22
AddressFamily any
ListenAddress 0.0.0.0
Protocol 2
# Keys:
HostKey /var/ssh/ssh_host_key
HostKey /var/ssh/ssh_host_rsa_key
HostKey /var/ssh/ssh_host_dsa_key
# Logging:
SyslogFacility AUTHPRIV
LogLevel INFO
# Authentication:
LoginGraceTime 30
PermitRootLogin no
StrictModes yes
MaxAuthTries 3
MaxSessions 10
RSAAuthentication no
PubkeyAuthentication yes
RhostsRSAAuthentication no
HostbasedAuthentication no
IgnoreUserKnownHosts no
IgnoreRhosts yes
PasswordAuthentication yes
PermitEmptyPasswords no
ChallengeResponseAuthentication no
KerberosAuthentication no
GSSAPIAuthentication no
UsePAM yes
UseLogin no
UseDNS no
UsePrivilegeSeparation yes
# Forwarding/Tunnel:
AllowAgentForwarding yes
AllowTcpForwarding no
GatewayPorts no
X11Forwarding no
PermitTunnel no
# Networking:
TCPKeepAlive yes
ClientAliveInterval 300
ClientAliveCountMax 0
MaxStartups 3:50:6
Compression delayed
# Subsystems:
Subsystem sftp /usr/libexec/openssh/sftp-server
# Other:
AcceptEnv LANG LC_*
#PrintMotd yes
#PrintLastLog yes
#PermitUserEnvironment no
#PidFile /var/run/sshd.pid
######## Change below: ########
#ChrootDirectory none
###############################