2021-07-02 05:11:20 +00:00
|
|
|
# $OpenBSD: sshd_config,v 1.104 2021/07/02 05:11:21 dtucker Exp $
|
2001-03-10 21:50:45 +00:00
|
|
|
|
2002-06-21 01:06:03 +00:00
|
|
|
# This is the sshd server system-wide configuration file. See
|
|
|
|
# sshd_config(5) for more information.
|
1999-10-27 03:42:43 +00:00
|
|
|
|
2002-01-31 06:14:03 +00:00
|
|
|
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
|
|
|
|
|
2002-02-19 04:29:02 +00:00
|
|
|
# The strategy used for options in the default sshd_config shipped with
|
2002-01-22 12:32:07 +00:00
|
|
|
# OpenSSH is to specify options with their default value where
|
2011-05-14 22:36:02 +00:00
|
|
|
# possible, but leave them commented. Uncommented options override the
|
2002-01-22 12:32:07 +00:00
|
|
|
# default value.
|
|
|
|
|
|
|
|
#Port 22
|
2005-01-19 23:57:56 +00:00
|
|
|
#AddressFamily any
|
2001-01-09 15:28:46 +00:00
|
|
|
#ListenAddress 0.0.0.0
|
2000-01-14 04:45:46 +00:00
|
|
|
#ListenAddress ::
|
2001-06-09 01:09:51 +00:00
|
|
|
|
2002-02-10 07:32:28 +00:00
|
|
|
#HostKey /etc/ssh/ssh_host_rsa_key
|
2010-09-10 01:20:11 +00:00
|
|
|
#HostKey /etc/ssh/ssh_host_ecdsa_key
|
2014-01-12 08:20:47 +00:00
|
|
|
#HostKey /etc/ssh/ssh_host_ed25519_key
|
2001-06-09 01:09:51 +00:00
|
|
|
|
2013-05-16 10:29:28 +00:00
|
|
|
# Ciphers and keying
|
|
|
|
#RekeyLimit default none
|
|
|
|
|
2000-01-20 12:13:36 +00:00
|
|
|
# Logging
|
2002-01-22 12:32:07 +00:00
|
|
|
#SyslogFacility AUTH
|
|
|
|
#LogLevel INFO
|
1999-11-11 10:07:00 +00:00
|
|
|
|
2001-06-09 01:09:51 +00:00
|
|
|
# Authentication:
|
|
|
|
|
2003-06-22 10:48:45 +00:00
|
|
|
#LoginGraceTime 2m
|
2015-08-06 14:53:21 +00:00
|
|
|
#PermitRootLogin prohibit-password
|
2002-01-22 12:32:07 +00:00
|
|
|
#StrictModes yes
|
2004-05-24 00:36:23 +00:00
|
|
|
#MaxAuthTries 6
|
2008-05-19 05:34:50 +00:00
|
|
|
#MaxSessions 10
|
2001-06-09 01:09:51 +00:00
|
|
|
|
2002-01-22 12:32:07 +00:00
|
|
|
#PubkeyAuthentication yes
|
2011-05-29 11:39:36 +00:00
|
|
|
|
|
|
|
# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
|
|
|
|
# but this is overridden so installations will only check .ssh/authorized_keys
|
|
|
|
AuthorizedKeysFile .ssh/authorized_keys
|
2001-06-09 01:09:51 +00:00
|
|
|
|
2012-04-22 01:25:10 +00:00
|
|
|
#AuthorizedPrincipalsFile none
|
|
|
|
|
2012-10-30 21:58:58 +00:00
|
|
|
#AuthorizedKeysCommand none
|
|
|
|
#AuthorizedKeysCommandUser nobody
|
|
|
|
|
2002-02-10 07:32:28 +00:00
|
|
|
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
|
2002-01-22 12:32:07 +00:00
|
|
|
#HostbasedAuthentication no
|
|
|
|
# Change to yes if you don't trust ~/.ssh/known_hosts for
|
2016-08-15 12:32:04 +00:00
|
|
|
# HostbasedAuthentication
|
2002-01-22 12:32:07 +00:00
|
|
|
#IgnoreUserKnownHosts no
|
2003-08-13 10:37:05 +00:00
|
|
|
# Don't read the user's ~/.rhosts and ~/.shosts files
|
|
|
|
#IgnoreRhosts yes
|
1999-10-27 03:42:43 +00:00
|
|
|
|
|
|
|
# To disable tunneled clear text passwords, change to no here!
|
2002-01-22 12:32:07 +00:00
|
|
|
#PasswordAuthentication yes
|
|
|
|
#PermitEmptyPasswords no
|
2001-04-25 12:44:14 +00:00
|
|
|
|
2002-01-22 12:32:07 +00:00
|
|
|
# Change to no to disable s/key passwords
|
2021-07-02 05:11:20 +00:00
|
|
|
#KbdInteractiveAuthentication yes
|
1999-10-27 03:42:43 +00:00
|
|
|
|
2002-01-22 12:32:07 +00:00
|
|
|
# Kerberos options
|
2002-04-23 11:04:51 +00:00
|
|
|
#KerberosAuthentication no
|
1999-10-27 03:42:43 +00:00
|
|
|
#KerberosOrLocalPasswd yes
|
2002-01-22 12:32:07 +00:00
|
|
|
#KerberosTicketCleanup yes
|
2003-12-31 00:37:34 +00:00
|
|
|
#KerberosGetAFSToken no
|
2002-01-22 12:32:07 +00:00
|
|
|
|
2003-08-26 01:49:55 +00:00
|
|
|
# GSSAPI options
|
|
|
|
#GSSAPIAuthentication no
|
2003-10-02 06:20:54 +00:00
|
|
|
#GSSAPICleanupCredentials yes
|
2003-08-26 01:49:55 +00:00
|
|
|
|
2013-09-18 05:09:38 +00:00
|
|
|
# Set this to 'yes' to enable PAM authentication, account processing,
|
|
|
|
# and session processing. If this is enabled, PAM authentication will
|
2006-02-23 10:35:30 +00:00
|
|
|
# be allowed through the ChallengeResponseAuthentication and
|
|
|
|
# PasswordAuthentication. Depending on your PAM configuration,
|
|
|
|
# PAM authentication via ChallengeResponseAuthentication may bypass
|
|
|
|
# the setting of "PermitRootLogin without-password".
|
|
|
|
# If you just want the PAM account and session checks to run without
|
|
|
|
# PAM authentication, then enable this but set PasswordAuthentication
|
|
|
|
# and ChallengeResponseAuthentication to 'no'.
|
2003-09-26 02:04:34 +00:00
|
|
|
#UsePAM no
|
2000-01-20 12:13:36 +00:00
|
|
|
|
2008-05-19 04:58:22 +00:00
|
|
|
#AllowAgentForwarding yes
|
2003-06-22 10:48:45 +00:00
|
|
|
#AllowTcpForwarding yes
|
|
|
|
#GatewayPorts no
|
2002-01-22 12:32:07 +00:00
|
|
|
#X11Forwarding no
|
|
|
|
#X11DisplayOffset 10
|
2002-02-05 01:11:34 +00:00
|
|
|
#X11UseLocalhost yes
|
2013-10-30 11:21:50 +00:00
|
|
|
#PermitTTY yes
|
2002-01-22 12:32:07 +00:00
|
|
|
#PrintMotd yes
|
|
|
|
#PrintLastLog yes
|
2003-12-31 00:38:32 +00:00
|
|
|
#TCPKeepAlive yes
|
2002-08-01 01:28:38 +00:00
|
|
|
#PermitUserEnvironment no
|
2005-07-26 11:54:56 +00:00
|
|
|
#Compression delayed
|
2003-06-22 10:48:45 +00:00
|
|
|
#ClientAliveInterval 0
|
|
|
|
#ClientAliveCountMax 3
|
2015-02-02 01:57:44 +00:00
|
|
|
#UseDNS no
|
2003-06-22 10:48:45 +00:00
|
|
|
#PidFile /var/run/sshd.pid
|
2013-02-12 00:02:08 +00:00
|
|
|
#MaxStartups 10:30:100
|
2005-12-13 08:29:02 +00:00
|
|
|
#PermitTunnel no
|
2008-02-10 11:40:12 +00:00
|
|
|
#ChrootDirectory none
|
2012-04-22 01:24:43 +00:00
|
|
|
#VersionAddendum none
|
2003-06-22 10:48:45 +00:00
|
|
|
|
2002-01-22 12:32:07 +00:00
|
|
|
# no default banner path
|
2007-09-17 01:57:38 +00:00
|
|
|
#Banner none
|
2001-02-10 23:26:35 +00:00
|
|
|
|
2002-01-22 12:32:07 +00:00
|
|
|
# override default of no subsystems
|
2001-02-10 23:26:35 +00:00
|
|
|
Subsystem sftp /usr/libexec/sftp-server
|
2006-07-24 04:06:47 +00:00
|
|
|
|
|
|
|
# Example of overriding settings on a per-user basis
|
|
|
|
#Match User anoncvs
|
|
|
|
# X11Forwarding no
|
|
|
|
# AllowTcpForwarding no
|
2013-10-30 11:21:50 +00:00
|
|
|
# PermitTTY no
|
2006-07-24 04:06:47 +00:00
|
|
|
# ForceCommand cvs server
|