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
19 # Include /etc/ssh/sshd_config.d/*.conf
23 #ListenAddress 0.0.0.0
26 HostKey /etc/ssh/ssh_host_rsa_key
27 HostKey /etc/ssh/ssh_host_ed25519_key
30 #RekeyLimit default none
39 #PermitRootLogin prohibit-password
44 #PubkeyAuthentication yes
46 # Expect .ssh/authorized_keys2 to be disregarded by default in future.
47 #AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
49 #AuthorizedPrincipalsFile none
51 #AuthorizedKeysCommand none
52 #AuthorizedKeysCommandUser nobody
54 # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
55 #HostbasedAuthentication no
56 # Change to yes if you don't trust ~/.ssh/known_hosts for
57 # HostbasedAuthentication
58 #IgnoreUserKnownHosts no
59 # Don't read the user's ~/.rhosts and ~/.shosts files
62 # To disable tunneled clear text passwords, change to "no" here!
63 PasswordAuthentication no
64 #PermitEmptyPasswords no
66 # Change to "yes" to enable keyboard-interactive authentication. Depending on
67 # the system's configuration, this may involve passwords, challenge-response,
68 # one-time passwords or some combination of these and other methods.
69 # Beware issues with some PAM modules and threads.
70 KbdInteractiveAuthentication no
73 #KerberosAuthentication no
74 #KerberosOrLocalPasswd yes
75 #KerberosTicketCleanup yes
76 #KerberosGetAFSToken no
79 #GSSAPIAuthentication no
80 #GSSAPICleanupCredentials yes
81 #GSSAPIStrictAcceptorCheck yes
84 # Set this to 'yes' to enable PAM authentication, account processing,
85 # and session processing. If this is enabled, PAM authentication will
86 # be allowed through the KbdInteractiveAuthentication and
87 # PasswordAuthentication. Depending on your PAM configuration,
88 # PAM authentication via KbdInteractiveAuthentication may bypass
89 # the setting of "PermitRootLogin prohibit-password".
90 # If you just want the PAM account and session checks to run without
91 # PAM authentication, then enable this but set PasswordAuthentication
92 # and KbdInteractiveAuthentication to 'no'.
95 #AllowAgentForwarding yes
96 #AllowTcpForwarding yes
105 #PermitUserEnvironment no
107 #ClientAliveInterval 0
108 #ClientAliveCountMax 3
110 #PidFile /run/sshd.pid
111 #MaxStartups 10:30:100
113 #ChrootDirectory none
114 #VersionAddendum none
116 # no default banner path
119 # Allow client to pass locale and color environment variables
120 AcceptEnv LANG LC_* COLORTERM NO_COLOR
122 # override default of no subsystems
123 Subsystem sftp /usr/lib/openssh/sftp-server
125 # Allow sudoers to login with a password.
127 PasswordAuthentication yes