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