Skip to content

Instantly share code, notes, and snippets.

@egeneralov
Created May 11, 2022 23:02
Show Gist options
  • Save egeneralov/65cf3057bc3c218c63ec8a0b3a4350f0 to your computer and use it in GitHub Desktop.
Save egeneralov/65cf3057bc3c218c63ec8a0b3a4350f0 to your computer and use it in GitHub Desktop.
PermitRootLogin without-password
ChallengeResponseAuthentication no
UsePAM yes
X11Forwarding yes
PrintMotd no
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
Port 22
PubkeyAuthentication yes
ListenAddress 0.0.0.0
SyslogFacility AUTH
LogLevel INFO
LoginGraceTime 10s
MaxAuthTries 10
PasswordAuthentication no
PermitEmptyPasswords no
GatewayPorts yes
AllowAgentForwarding yes
UseDNS no
AuthorizedKeysFile .ssh/authorized_keys
Banner none
PrintLastLog yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment