Skip to content

Instantly share code, notes, and snippets.

Last active April 13, 2020 13:42
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Minimal, secure sshd_config (OpenSSH 8.2)
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
HostKey /etc/ssh/ssh_host_ed25519_key
HostKey /etc/ssh/ssh_host_rsa_key
ChallengeResponseAuthentication no
UsePAM yes
# Allow client to pass locale environment variables
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
HostKeyAlgorithms ssh-ed25519,rsa-sha2-512,rsa-sha2-256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment