2013-02-12 01:02:08 +01:00
|
|
|
# $OpenBSD: sshd_config,v 1.89 2013/02/06 00:20:42 dtucker Exp $
|
2001-03-10 22:50:45 +01:00
|
|
|
|
2002-06-21 03:06:03 +02:00
|
|
|
# This is the sshd server system-wide configuration file. See
|
|
|
|
# sshd_config(5) for more information.
|
1999-10-27 05:42:43 +02:00
|
|
|
|
2002-01-31 07:14:03 +01:00
|
|
|
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
|
|
|
|
|
2002-02-19 05:29:02 +01:00
|
|
|
# The strategy used for options in the default sshd_config shipped with
|
2002-01-22 13:32:07 +01:00
|
|
|
# OpenSSH is to specify options with their default value where
|
2011-05-15 00:36:02 +02:00
|
|
|
# possible, but leave them commented. Uncommented options override the
|
2002-01-22 13:32:07 +01:00
|
|
|
# default value.
|
|
|
|
|
|
|
|
#Port 22
|
2005-01-20 00:57:56 +01:00
|
|
|
#AddressFamily any
|
2001-01-09 16:28:46 +01:00
|
|
|
#ListenAddress 0.0.0.0
|
2000-01-14 05:45:46 +01:00
|
|
|
#ListenAddress ::
|
2001-06-09 03:09:51 +02:00
|
|
|
|
2009-10-11 12:51:08 +02:00
|
|
|
# The default requires explicit activation of protocol 1
|
|
|
|
#Protocol 2
|
2007-03-21 10:42:24 +01:00
|
|
|
|
2001-06-09 03:09:51 +02:00
|
|
|
# HostKey for protocol version 1
|
2002-02-10 08:32:28 +01:00
|
|
|
#HostKey /etc/ssh/ssh_host_key
|
2001-06-09 03:09:51 +02:00
|
|
|
# HostKeys for protocol version 2
|
2002-02-10 08:32:28 +01:00
|
|
|
#HostKey /etc/ssh/ssh_host_rsa_key
|
|
|
|
#HostKey /etc/ssh/ssh_host_dsa_key
|
2010-09-10 03:20:11 +02:00
|
|
|
#HostKey /etc/ssh/ssh_host_ecdsa_key
|
2001-06-09 03:09:51 +02:00
|
|
|
|
|
|
|
# Lifetime and size of ephemeral version 1 server key
|
2003-06-22 12:48:45 +02:00
|
|
|
#KeyRegenerationInterval 1h
|
2008-07-02 14:35:43 +02:00
|
|
|
#ServerKeyBits 1024
|
1999-11-13 13:56:35 +01:00
|
|
|
|
2000-01-20 13:13:36 +01:00
|
|
|
# Logging
|
2005-05-26 04:12:37 +02:00
|
|
|
# obsoletes QuietMode and FascistLogging
|
2002-01-22 13:32:07 +01:00
|
|
|
#SyslogFacility AUTH
|
|
|
|
#LogLevel INFO
|
1999-11-11 11:07:00 +01:00
|
|
|
|
2001-06-09 03:09:51 +02:00
|
|
|
# Authentication:
|
|
|
|
|
2003-06-22 12:48:45 +02:00
|
|
|
#LoginGraceTime 2m
|
2002-01-22 13:32:07 +01:00
|
|
|
#PermitRootLogin yes
|
|
|
|
#StrictModes yes
|
2004-05-24 02:36:23 +02:00
|
|
|
#MaxAuthTries 6
|
2008-05-19 07:34:50 +02:00
|
|
|
#MaxSessions 10
|
2001-06-09 03:09:51 +02:00
|
|
|
|
2002-01-22 13:32:07 +01:00
|
|
|
#RSAAuthentication yes
|
|
|
|
#PubkeyAuthentication yes
|
2011-05-29 13:39:36 +02: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 03:09:51 +02:00
|
|
|
|
2012-04-22 03:25:10 +02:00
|
|
|
#AuthorizedPrincipalsFile none
|
|
|
|
|
2012-10-30 22:58:58 +01:00
|
|
|
#AuthorizedKeysCommand none
|
|
|
|
#AuthorizedKeysCommandUser nobody
|
|
|
|
|
2002-02-10 08:32:28 +01:00
|
|
|
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
|
2002-01-22 13:32:07 +01:00
|
|
|
#RhostsRSAAuthentication no
|
2001-04-13 01:34:34 +02:00
|
|
|
# similar for protocol version 2
|
2002-01-22 13:32:07 +01:00
|
|
|
#HostbasedAuthentication no
|
|
|
|
# Change to yes if you don't trust ~/.ssh/known_hosts for
|
|
|
|
# RhostsRSAAuthentication and HostbasedAuthentication
|
|
|
|
#IgnoreUserKnownHosts no
|
2003-08-13 12:37:05 +02:00
|
|
|
# Don't read the user's ~/.rhosts and ~/.shosts files
|
|
|
|
#IgnoreRhosts yes
|
1999-10-27 05:42:43 +02:00
|
|
|
|
|
|
|
# To disable tunneled clear text passwords, change to no here!
|
2002-01-22 13:32:07 +01:00
|
|
|
#PasswordAuthentication yes
|
|
|
|
#PermitEmptyPasswords no
|
2001-04-25 14:44:14 +02:00
|
|
|
|
2002-01-22 13:32:07 +01:00
|
|
|
# Change to no to disable s/key passwords
|
|
|
|
#ChallengeResponseAuthentication yes
|
1999-10-27 05:42:43 +02:00
|
|
|
|
2002-01-22 13:32:07 +01:00
|
|
|
# Kerberos options
|
2002-04-23 13:04:51 +02:00
|
|
|
#KerberosAuthentication no
|
1999-10-27 05:42:43 +02:00
|
|
|
#KerberosOrLocalPasswd yes
|
2002-01-22 13:32:07 +01:00
|
|
|
#KerberosTicketCleanup yes
|
2003-12-31 01:37:34 +01:00
|
|
|
#KerberosGetAFSToken no
|
2002-01-22 13:32:07 +01:00
|
|
|
|
2003-08-26 03:49:55 +02:00
|
|
|
# GSSAPI options
|
|
|
|
#GSSAPIAuthentication no
|
2003-10-02 08:20:54 +02:00
|
|
|
#GSSAPICleanupCredentials yes
|
2003-08-26 03:49:55 +02:00
|
|
|
|
2004-05-23 03:47:58 +02:00
|
|
|
# Set this to 'yes' to enable PAM authentication, account processing,
|
|
|
|
# and session processing. If this is enabled, PAM authentication will
|
2006-02-23 11:35:30 +01: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 04:04:34 +02:00
|
|
|
#UsePAM no
|
2000-01-20 13:13:36 +01:00
|
|
|
|
2008-05-19 06:58:22 +02:00
|
|
|
#AllowAgentForwarding yes
|
2003-06-22 12:48:45 +02:00
|
|
|
#AllowTcpForwarding yes
|
|
|
|
#GatewayPorts no
|
2002-01-22 13:32:07 +01:00
|
|
|
#X11Forwarding no
|
|
|
|
#X11DisplayOffset 10
|
2002-02-05 02:11:34 +01:00
|
|
|
#X11UseLocalhost yes
|
2002-01-22 13:32:07 +01:00
|
|
|
#PrintMotd yes
|
|
|
|
#PrintLastLog yes
|
2003-12-31 01:38:32 +01:00
|
|
|
#TCPKeepAlive yes
|
2000-08-30 00:40:09 +02:00
|
|
|
#UseLogin no
|
2012-07-31 04:21:34 +02:00
|
|
|
UsePrivilegeSeparation sandbox # Default for new installations.
|
2002-08-01 03:28:38 +02:00
|
|
|
#PermitUserEnvironment no
|
2005-07-26 13:54:56 +02:00
|
|
|
#Compression delayed
|
2003-06-22 12:48:45 +02:00
|
|
|
#ClientAliveInterval 0
|
|
|
|
#ClientAliveCountMax 3
|
|
|
|
#UseDNS yes
|
|
|
|
#PidFile /var/run/sshd.pid
|
2013-02-12 01:02:08 +01:00
|
|
|
#MaxStartups 10:30:100
|
2005-12-13 09:29:02 +01:00
|
|
|
#PermitTunnel no
|
2008-02-10 12:40:12 +01:00
|
|
|
#ChrootDirectory none
|
2012-04-22 03:24:43 +02:00
|
|
|
#VersionAddendum none
|
2003-06-22 12:48:45 +02:00
|
|
|
|
2002-01-22 13:32:07 +01:00
|
|
|
# no default banner path
|
2007-09-17 03:57:38 +02:00
|
|
|
#Banner none
|
2001-02-11 00:26:35 +01:00
|
|
|
|
2002-01-22 13:32:07 +01:00
|
|
|
# override default of no subsystems
|
2001-02-11 00:26:35 +01:00
|
|
|
Subsystem sftp /usr/libexec/sftp-server
|
2006-07-24 06:06:47 +02:00
|
|
|
|
|
|
|
# Example of overriding settings on a per-user basis
|
|
|
|
#Match User anoncvs
|
|
|
|
# X11Forwarding no
|
|
|
|
# AllowTcpForwarding no
|
|
|
|
# ForceCommand cvs server
|