]> git.somenet.org - root/pub/somesible.git/blob - roles/base/ssh/files/default/sshd_config
roles/service/mattermost/defaults
[root/pub/somesible.git] / roles / base / ssh / files / default / sshd_config
1 #
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>
7 #
8
9 # This is the sshd server system-wide configuration file.  See
10 # sshd_config(5) for more information.
11
12 # This sshd was compiled with PATH=/usr/local/bin:/usr/bin:/bin:/usr/games
13
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
17 # default value.
18
19 # Include /etc/ssh/sshd_config.d/*.conf
20
21 Port 2
22 #AddressFamily any
23 #ListenAddress 0.0.0.0
24 #ListenAddress ::
25
26 HostKey /etc/ssh/ssh_host_rsa_key
27 HostKey /etc/ssh/ssh_host_ed25519_key
28
29 # Ciphers and keying
30 #RekeyLimit default none
31
32 # Logging
33 #SyslogFacility AUTH
34 #LogLevel INFO
35
36 # Authentication:
37
38 #LoginGraceTime 2m
39 #PermitRootLogin prohibit-password
40 #StrictModes yes
41 #MaxAuthTries 6
42 #MaxSessions 10
43
44 #PubkeyAuthentication yes
45
46 # Expect .ssh/authorized_keys2 to be disregarded by default in future.
47 #AuthorizedKeysFile     .ssh/authorized_keys .ssh/authorized_keys2
48
49 #AuthorizedPrincipalsFile none
50
51 #AuthorizedKeysCommand none
52 #AuthorizedKeysCommandUser nobody
53
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
60 #IgnoreRhosts yes
61
62 # To disable tunneled clear text passwords, change to "no" here!
63 PasswordAuthentication no
64 #PermitEmptyPasswords no
65
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
71
72 # Kerberos options
73 #KerberosAuthentication no
74 #KerberosOrLocalPasswd yes
75 #KerberosTicketCleanup yes
76 #KerberosGetAFSToken no
77
78 # GSSAPI options
79 #GSSAPIAuthentication no
80 #GSSAPICleanupCredentials yes
81 #GSSAPIStrictAcceptorCheck yes
82 #GSSAPIKeyExchange no
83
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'.
93 UsePAM yes
94
95 #AllowAgentForwarding yes
96 #AllowTcpForwarding yes
97 #GatewayPorts no
98 X11Forwarding yes
99 #X11DisplayOffset 10
100 #X11UseLocalhost yes
101 #PermitTTY yes
102 PrintMotd no
103 #PrintLastLog yes
104 #TCPKeepAlive yes
105 #PermitUserEnvironment no
106 #Compression delayed
107 #ClientAliveInterval 0
108 #ClientAliveCountMax 3
109 #UseDNS no
110 #PidFile /run/sshd.pid
111 #MaxStartups 10:30:100
112 #PermitTunnel no
113 #ChrootDirectory none
114 #VersionAddendum none
115
116 # no default banner path
117 #Banner none
118
119 # Allow client to pass locale and color environment variables
120 AcceptEnv LANG LC_* COLORTERM NO_COLOR
121
122 # override default of no subsystems
123 Subsystem       sftp    /usr/lib/openssh/sftp-server
124
125 # Allow sudoers to login with a password.
126 Match group sudo
127     PasswordAuthentication yes