| 1 |
# $OpenBSD: sshd_config,v 1.100 2016/08/15 12:32:04 naddy Exp $ |
| 2 |
|
| 3 |
# This is the sshd server system-wide configuration file. See |
| 4 |
# sshd_config(5) for more information. |
| 5 |
|
| 6 |
# This sshd was compiled with PATH=/usr/local/bin:/usr/bin |
| 7 |
|
| 8 |
# The strategy used for options in the default sshd_config shipped with |
| 9 |
# OpenSSH is to specify options with their default value where |
| 10 |
# possible, but leave them commented. Uncommented options override the |
| 11 |
# default value. |
| 12 |
|
| 13 |
# If you want to change the port on a SELinux system, you have to tell |
| 14 |
# SELinux about this change. |
| 15 |
# semanage port -a -t ssh_port_t -p tcp #PORTNUMBER |
| 16 |
# |
| 17 |
#Port 22 |
| 18 |
#AddressFamily any |
| 19 |
#ListenAddress 0.0.0.0 |
| 20 |
#ListenAddress :: |
| 21 |
|
| 22 |
HostKey /etc/ssh/ssh_host_rsa_key |
| 23 |
#HostKey /etc/ssh/ssh_host_dsa_key |
| 24 |
HostKey /etc/ssh/ssh_host_ecdsa_key |
| 25 |
HostKey /etc/ssh/ssh_host_ed25519_key |
| 26 |
|
| 27 |
# Ciphers and keying |
| 28 |
#RekeyLimit default none |
| 29 |
|
| 30 |
# Logging |
| 31 |
#SyslogFacility AUTH |
| 32 |
SyslogFacility AUTHPRIV |
| 33 |
#LogLevel INFO |
| 34 |
|
| 35 |
# Authentication: |
| 36 |
|
| 37 |
#LoginGraceTime 2m |
| 38 |
PermitRootLogin yes |
| 39 |
#StrictModes yes |
| 40 |
#MaxAuthTries 6 |
| 41 |
#MaxSessions 10 |
| 42 |
|
| 43 |
#PubkeyAuthentication yes |
| 44 |
|
| 45 |
# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2 |
| 46 |
# but this is overridden so installations will only check .ssh/authorized_keys |
| 47 |
AuthorizedKeysFile .ssh/authorized_keys |
| 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 |
#PermitEmptyPasswords no |
| 64 |
|
| 65 |
# Change to no to disable s/key passwords |
| 66 |
#ChallengeResponseAuthentication yes |
| 67 |
ChallengeResponseAuthentication no |
| 68 |
|
| 69 |
# Kerberos options |
| 70 |
#KerberosAuthentication no |
| 71 |
#KerberosOrLocalPasswd yes |
| 72 |
#KerberosTicketCleanup yes |
| 73 |
#KerberosGetAFSToken no |
| 74 |
#KerberosUseKuserok yes |
| 75 |
|
| 76 |
# GSSAPI options |
| 77 |
GSSAPIAuthentication yes |
| 78 |
GSSAPICleanupCredentials no |
| 79 |
#GSSAPIStrictAcceptorCheck yes |
| 80 |
#GSSAPIKeyExchange no |
| 81 |
#GSSAPIEnablek5users no |
| 82 |
|
| 83 |
# Set this to 'yes' to enable PAM authentication, account processing, |
| 84 |
# and session processing. If this is enabled, PAM authentication will |
| 85 |
# be allowed through the ChallengeResponseAuthentication and |
| 86 |
# PAM authentication via ChallengeResponseAuthentication may bypass |
| 87 |
# the setting of "PermitRootLogin without-password". |
| 88 |
# If you just want the PAM account and session checks to run without |
| 89 |
# and ChallengeResponseAuthentication to 'no'. |
| 90 |
# WARNING: 'UsePAM no' is not supported in Fedora and may cause several |
| 91 |
# problems. |
| 92 |
UsePAM yes |
| 93 |
|
| 94 |
#AllowAgentForwarding yes |
| 95 |
#AllowTcpForwarding yes |
| 96 |
#GatewayPorts no |
| 97 |
X11Forwarding yes |
| 98 |
#X11DisplayOffset 10 |
| 99 |
#X11UseLocalhost yes |
| 100 |
#PermitTTY yes |
| 101 |
#PrintMotd yes |
| 102 |
#PrintLastLog yes |
| 103 |
#TCPKeepAlive yes |
| 104 |
#UseLogin no |
| 105 |
#UsePrivilegeSeparation sandbox |
| 106 |
#PermitUserEnvironment no |
| 107 |
#Compression delayed |
| 108 |
#ClientAliveInterval 0 |
| 109 |
#ClientAliveCountMax 3 |
| 110 |
#ShowPatchLevel no |
| 111 |
#UseDNS no |
| 112 |
#PidFile /var/run/sshd.pid |
| 113 |
#MaxStartups 10:30:100 |
| 114 |
#PermitTunnel no |
| 115 |
#ChrootDirectory none |
| 116 |
#VersionAddendum none |
| 117 |
|
| 118 |
# no default banner path |
| 119 |
#Banner none |
| 120 |
|
| 121 |
# Accept locale-related environment variables |
| 122 |
AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES |
| 123 |
AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT |
| 124 |
AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE |
| 125 |
AcceptEnv XMODIFIERS |
| 126 |
|
| 127 |
# override default of no subsystems |
| 128 |
Subsystem sftp /usr/libexec/openssh/sftp-server |
| 129 |
|
| 130 |
# Example of overriding settings on a per-user basis |
| 131 |
#Match User anoncvs |
| 132 |
# X11Forwarding no |
| 133 |
# AllowTcpForwarding no |
| 134 |
# PermitTTY no |
| 135 |
# ForceCommand cvs server |