| 1 |
Include foo/bar foo/baz |
| 2 |
Include foo/buz |
| 3 |
|
| 4 |
# $OpenBSD: sshd_config,v 1.100 2016/08/15 12:32:04 naddy Exp $ |
| 5 |
|
| 6 |
# This is the sshd server system-wide configuration file. See |
| 7 |
# sshd_config(5) for more information. |
| 8 |
|
| 9 |
# This sshd was compiled with PATH=/usr/local/bin:/usr/bin |
| 10 |
|
| 11 |
# The strategy used for options in the default sshd_config shipped with |
| 12 |
# OpenSSH is to specify options with their default value where |
| 13 |
# possible, but leave them commented. Uncommented options override the |
| 14 |
# default value. |
| 15 |
|
| 16 |
# If you want to change the port on a SELinux system, you have to tell |
| 17 |
# SELinux about this change. |
| 18 |
# semanage port -a -t ssh_port_t -p tcp #PORTNUMBER |
| 19 |
# |
| 20 |
Port 22 |
| 21 |
AddressFamily any |
| 22 |
ListenAddress 0.0.0.0 |
| 23 |
ListenAddress :: |
| 24 |
|
| 25 |
Match group chroot |
| 26 |
this should be ignored |
| 27 |
this line too should be ignored |
| 28 |
|
| 29 |
keep ignoring |
| 30 |
Match all |
| 31 |
|
| 32 |
HostKey /etc/ssh/ssh_host_rsa_key |
| 33 |
#HostKey /etc/ssh/ssh_host_dsa_key |
| 34 |
HostKey /etc/ssh/ssh_host_ecdsa_key |
| 35 |
|
| 36 |
Match group anything |
| 37 |
ignore this |
| 38 |
don't look at this |
| 39 |
Match all |
| 40 |
|
| 41 |
HostKey /etc/ssh/ssh_host_ed25519_key |
| 42 |
|
| 43 |
# Ciphers and keying |
| 44 |
#RekeyLimit default none |
| 45 |
|
| 46 |
# Logging |
| 47 |
#SyslogFacility AUTH |
| 48 |
SyslogFacility AUTHPRIV |
| 49 |
#LogLevel INFO |
| 50 |
|
| 51 |
# Authentication: |
| 52 |
|
| 53 |
#LoginGraceTime 2m |
| 54 |
#PermitRootLogin yes |
| 55 |
#StrictModes yes |
| 56 |
#MaxAuthTries 6 |
| 57 |
#MaxSessions 10 |
| 58 |
|
| 59 |
#PubkeyAuthentication yes |
| 60 |
|
| 61 |
# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2 |
| 62 |
# but this is overridden so installations will only check .ssh/authorized_keys |
| 63 |
AuthorizedKeysFile .ssh/authorized_keys |
| 64 |
|
| 65 |
#AuthorizedPrincipalsFile none |
| 66 |
|
| 67 |
#AuthorizedKeysCommand none |
| 68 |
#AuthorizedKeysCommandUser nobody |
| 69 |
|
| 70 |
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts |
| 71 |
#HostbasedAuthentication no |
| 72 |
# Change to yes if you don't trust ~/.ssh/known_hosts for |
| 73 |
# HostbasedAuthentication |
| 74 |
#IgnoreUserKnownHosts no |
| 75 |
# Don't read the user's ~/.rhosts and ~/.shosts files |
| 76 |
#IgnoreRhosts yes |
| 77 |
|
| 78 |
# To disable tunneled clear text passwords, change to no here! |
| 79 |
#PasswordAuthentication yes |
| 80 |
#PermitEmptyPasswords no |
| 81 |
PasswordAuthentication yes |
| 82 |
|
| 83 |
# Change to no to disable s/key passwords |
| 84 |
#ChallengeResponseAuthentication yes |
| 85 |
ChallengeResponseAuthentication no |
| 86 |
|
| 87 |
# Kerberos options |
| 88 |
#KerberosAuthentication no |
| 89 |
#KerberosOrLocalPasswd yes |
| 90 |
#KerberosTicketCleanup yes |
| 91 |
#KerberosGetAFSToken no |
| 92 |
#KerberosUseKuserok yes |
| 93 |
|
| 94 |
# GSSAPI options |
| 95 |
GSSAPIAuthentication yes |
| 96 |
GSSAPICleanupCredentials no |
| 97 |
#GSSAPIStrictAcceptorCheck yes |
| 98 |
#GSSAPIKeyExchange no |
| 99 |
#GSSAPIEnablek5users no |
| 100 |
|
| 101 |
# Set this to 'yes' to enable PAM authentication, account processing, |
| 102 |
# and session processing. If this is enabled, PAM authentication will |
| 103 |
# be allowed through the ChallengeResponseAuthentication and |
| 104 |
# PasswordAuthentication. Depending on your PAM configuration, |
| 105 |
# PAM authentication via ChallengeResponseAuthentication may bypass |
| 106 |
# the setting of "PermitRootLogin without-password". |
| 107 |
# If you just want the PAM account and session checks to run without |
| 108 |
# PAM authentication, then enable this but set PasswordAuthentication |
| 109 |
# and ChallengeResponseAuthentication to 'no'. |
| 110 |
# WARNING: 'UsePAM no' is not supported in Red Hat Enterprise Linux and may cause several |
| 111 |
# problems. |
| 112 |
UsePAM yes |
| 113 |
|
| 114 |
#AllowAgentForwarding yes |
| 115 |
#AllowTcpForwarding yes |
| 116 |
#GatewayPorts no |
| 117 |
X11Forwarding yes |
| 118 |
#X11DisplayOffset 10 |
| 119 |
#X11UseLocalhost yes |
| 120 |
#PermitTTY yes |
| 121 |
#PrintMotd yes |
| 122 |
#PrintLastLog yes |
| 123 |
#TCPKeepAlive yes |
| 124 |
#UseLogin no |
| 125 |
#UsePrivilegeSeparation sandbox |
| 126 |
#PermitUserEnvironment no |
| 127 |
#Compression delayed |
| 128 |
#ClientAliveInterval 0 |
| 129 |
#ClientAliveCountMax 3 |
| 130 |
#ShowPatchLevel no |
| 131 |
#UseDNS yes |
| 132 |
#PidFile /var/run/sshd.pid |
| 133 |
#MaxStartups 10:30:100 |
| 134 |
#PermitTunnel no |
| 135 |
#ChrootDirectory none |
| 136 |
#VersionAddendum none |
| 137 |
|
| 138 |
# no default banner path |
| 139 |
#Banner none |
| 140 |
|
| 141 |
# Accept locale-related environment variables |
| 142 |
AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES |
| 143 |
AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT |
| 144 |
AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE |
| 145 |
AcceptEnv XMODIFIERS |
| 146 |
|
| 147 |
# override default of no subsystems |
| 148 |
Subsystem sftp /usr/libexec/openssh/sftp-server |
| 149 |
|
| 150 |
# Example of overriding settings on a per-user basis |
| 151 |
#Match User anoncvs |
| 152 |
# X11Forwarding no |
| 153 |
# AllowTcpForwarding no |
| 154 |
# PermitTTY no |
| 155 |
# ForceCommand cvs server |