Last active
August 3, 2018 14:01
-
-
Save rohan-molloy/57bfac41735bfc5172bfbca4f9206852 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Protocol options | |
# | |
Protocol 2 | |
Port 22 | |
AddressFamily inet | |
ListenAddress 0.0.0.0 | |
# | |
# Host Keys | |
# | |
HostKey /etc/ssh/ssh_host_rsa_key | |
HostKey /etc/ssh/ssh_host_ed25519_key | |
# | |
# Crypto | |
# | |
Ciphers aes128-ctr,aes192-ctr,aes256-ctr | |
KexAlgorithms [email protected],diffie-hellman-group-exchange-sha256 | |
MACs [email protected],[email protected],[email protected],hmac-sha2-512,hmac-sha2-256,[email protected] | |
# | |
# SSH Server privileges | |
# | |
UsePrivilegeSeparation sandbox | |
AllowTCPForwarding no | |
AllowStreamLocalForwarding no | |
X11Forwarding no | |
GatewayPorts no | |
PermitTunnel no | |
PermitTTY yes | |
# | |
# Logging options | |
# | |
SyslogFacility AUTH | |
LogLevel INFO | |
# | |
# Authentication Systems | |
# | |
PubkeyAuthentication yes | |
PasswordAuthentication no | |
HostbasedAuthentication no | |
RhostsRSAAuthentication no | |
ChallengeResponseAuthentication no | |
KerberosAuthentication no | |
GSSAPIAuthentication no | |
# | |
# Authentication options | |
# | |
PermitRootLogin yes | |
PermitEmptyPasswords no | |
LoginGraceTime 45s | |
StrictModes yes | |
# | |
# Other options | |
# | |
UseDNS no | |
IgnoreRhosts yes | |
TCPKeepAlive yes | |
ClientAliveInterval 120 | |
ClientAliveCountMax 2 | |
PrintMotd no | |
PrintLastLog yes | |
AcceptEnv LANG LC_* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment