Skip to content

Instantly share code, notes, and snippets.

@diegoaguilar
Last active August 29, 2015 14:20
Show Gist options
  • Save diegoaguilar/ab8ce19dec5148adf426 to your computer and use it in GitHub Desktop.
Save diegoaguilar/ab8ce19dec5148adf426 to your computer and use it in GitHub Desktop.
sshd config
Port 2222
ListenAddress 127.0.0.1
Protocol 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
UserPrivilegeSeparation yes
KeyRegenerationInterval 3600
ServerKeyBits 1024
SyslogFacility 1024
LogLevel VERBOSE
LoginGraceTime 120
PermitRootLogin no
StrictModes yes
PubKeyAuthentication yes
IgnoreRhosts yes
RHostsRSAAuthentication no
HostbasedAuthentication no
PermitEmptyPasswords no
PasswordAuthentication yes
TCPKeepAlive yes
#UseLogin no
UsePAM yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment