2003-09-02 12:51:17 +00:00
|
|
|
# $OpenBSD: sshd_config,v 1.65 2003/08/28 12:54:34 markus 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
|
|
|
|
# possible, but leave them commented. Uncommented options change a
|
|
|
|
# default value.
|
|
|
|
|
|
|
|
#Port 22
|
2000-04-19 06:26:12 +00:00
|
|
|
#Protocol 2,1
|
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
|
|
|
|
|
|
|
# HostKey for protocol version 1
|
2002-02-10 07:32:28 +00:00
|
|
|
#HostKey /etc/ssh/ssh_host_key
|
2001-06-09 01:09:51 +00:00
|
|
|
# HostKeys for protocol version 2
|
2002-02-10 07:32:28 +00:00
|
|
|
#HostKey /etc/ssh/ssh_host_rsa_key
|
|
|
|
#HostKey /etc/ssh/ssh_host_dsa_key
|
2001-06-09 01:09:51 +00:00
|
|
|
|
|
|
|
# Lifetime and size of ephemeral version 1 server key
|
2003-06-22 10:48:45 +00:00
|
|
|
#KeyRegenerationInterval 1h
|
2002-01-22 12:32:07 +00:00
|
|
|
#ServerKeyBits 768
|
1999-11-13 12:56:35 +00:00
|
|
|
|
2000-01-20 12:13:36 +00:00
|
|
|
# Logging
|
|
|
|
#obsoletes QuietMode and FascistLogging
|
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
|
2002-01-22 12:32:07 +00:00
|
|
|
#PermitRootLogin yes
|
|
|
|
#StrictModes yes
|
2001-06-09 01:09:51 +00:00
|
|
|
|
2002-01-22 12:32:07 +00:00
|
|
|
#RSAAuthentication yes
|
|
|
|
#PubkeyAuthentication yes
|
|
|
|
#AuthorizedKeysFile .ssh/authorized_keys
|
2001-06-09 01:09:51 +00:00
|
|
|
|
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
|
|
|
#RhostsRSAAuthentication no
|
2001-04-12 23:34:34 +00:00
|
|
|
# similar for protocol version 2
|
2002-01-22 12:32:07 +00:00
|
|
|
#HostbasedAuthentication no
|
|
|
|
# Change to yes if you don't trust ~/.ssh/known_hosts for
|
|
|
|
# RhostsRSAAuthentication and HostbasedAuthentication
|
|
|
|
#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
|
|
|
|
#ChallengeResponseAuthentication 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-08-26 01:49:55 +00:00
|
|
|
# GSSAPI options
|
|
|
|
#GSSAPIAuthentication no
|
|
|
|
#GSSAPICleanupCreds yes
|
|
|
|
|
2003-05-15 02:05:28 +00:00
|
|
|
# Set this to 'yes' to enable PAM authentication (via challenge-response)
|
2003-05-16 02:00:44 +00:00
|
|
|
# and session processing. Depending on your PAM configuration, this may
|
|
|
|
# bypass the setting of 'PasswordAuthentication'
|
|
|
|
#UsePAM yes
|
2000-01-20 12:13:36 +00:00
|
|
|
|
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
|
2002-01-22 12:32:07 +00:00
|
|
|
#PrintMotd yes
|
|
|
|
#PrintLastLog yes
|
|
|
|
#KeepAlive yes
|
2000-08-29 22:40:09 +00:00
|
|
|
#UseLogin no
|
2002-06-06 19:47:11 +00:00
|
|
|
#UsePrivilegeSeparation yes
|
2002-08-01 01:28:38 +00:00
|
|
|
#PermitUserEnvironment no
|
2002-06-21 01:11:36 +00:00
|
|
|
#Compression yes
|
2003-06-22 10:48:45 +00:00
|
|
|
#ClientAliveInterval 0
|
|
|
|
#ClientAliveCountMax 3
|
|
|
|
#UseDNS yes
|
|
|
|
#PidFile /var/run/sshd.pid
|
2002-01-22 12:32:07 +00:00
|
|
|
#MaxStartups 10
|
2003-06-22 10:48:45 +00:00
|
|
|
|
2002-01-22 12:32:07 +00:00
|
|
|
# no default banner path
|
|
|
|
#Banner /some/path
|
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
|