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