2 ################################################
 
   3 ### Managed by someone's ansible provisioner ###
 
   4 ################################################
 
   5 # Part of: https://git.somenet.org/root/pub/somesible.git
 
   6 # 2017-2025 by someone <someone@somenet.org>
 
   9 # This is the sshd server system-wide configuration file.  See
 
  10 # sshd_config(5) for more information.
 
  12 # This sshd was compiled with PATH=/usr/local/bin:/usr/bin:/bin:/usr/games
 
  14 # The strategy used for options in the default sshd_config shipped with
 
  15 # OpenSSH is to specify options with their default value where
 
  16 # possible, but leave them commented.  Uncommented options override the
 
  21 #ListenAddress 0.0.0.0
 
  24 HostKey /etc/ssh/ssh_host_rsa_key
 
  25 HostKey /etc/ssh/ssh_host_ed25519_key
 
  28 #RekeyLimit default none
 
  30 # Disabled ECDSA/NIST curves.
 
  31 KexAlgorithms diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,curve25519-sha256@libssh.org,curve25519-sha256,diffie-hellman-group-exchange-sha256
 
  32 Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
 
  33 MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,umac-128@openssh.com
 
  42 #PermitRootLogin prohibit-password
 
  47 #PubkeyAuthentication yes
 
  49 # Expect .ssh/authorized_keys2 to be disregarded by default in future.
 
  50 #AuthorizedKeysFile     .ssh/authorized_keys .ssh/authorized_keys2
 
  52 #AuthorizedPrincipalsFile none
 
  54 #AuthorizedKeysCommand none
 
  55 #AuthorizedKeysCommandUser nobody
 
  57 # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
 
  58 #HostbasedAuthentication no
 
  59 # Change to yes if you don't trust ~/.ssh/known_hosts for
 
  60 # HostbasedAuthentication
 
  61 #IgnoreUserKnownHosts no
 
  62 # Don't read the user's ~/.rhosts and ~/.shosts files
 
  65 # To disable tunneled clear text passwords, change to no here!
 
  66 PasswordAuthentication no
 
  67 #PermitEmptyPasswords no
 
  69 # Change to yes to enable challenge-response passwords (beware issues with
 
  70 # some PAM modules and threads)
 
  71 KbdInteractiveAuthentication no
 
  74 #KerberosAuthentication no
 
  75 #KerberosOrLocalPasswd yes
 
  76 #KerberosTicketCleanup yes
 
  77 #KerberosGetAFSToken no
 
  80 #GSSAPIAuthentication no
 
  81 #GSSAPICleanupCredentials yes
 
  82 #GSSAPIStrictAcceptorCheck yes
 
  85 # Set this to 'yes' to enable PAM authentication, account processing,
 
  86 # and session processing. If this is enabled, PAM authentication will
 
  87 # be allowed through the KbdInteractiveAuthentication and
 
  88 # PasswordAuthentication.  Depending on your PAM configuration,
 
  89 # PAM authentication via KbdInteractiveAuthentication may bypass
 
  90 # the setting of "PermitRootLogin prohibit-password".
 
  91 # If you just want the PAM account and session checks to run without
 
  92 # PAM authentication, then enable this but set PasswordAuthentication
 
  93 # and KbdInteractiveAuthentication to 'no'.
 
  96 #AllowAgentForwarding yes
 
  97 #AllowTcpForwarding yes
 
 106 #PermitUserEnvironment no
 
 108 #ClientAliveInterval 0
 
 109 #ClientAliveCountMax 3
 
 111 #PidFile /run/sshd.pid
 
 112 #MaxStartups 10:30:100
 
 114 #ChrootDirectory none
 
 115 #VersionAddendum none
 
 117 # no default banner path
 
 120 # Allow client to pass locale environment variables
 
 123 # override default of no subsystems
 
 124 Subsystem       sftp    /usr/lib/openssh/sftp-server
 
 126 # Allow sudoers to login with a password.
 
 128     PasswordAuthentication yes