blob: 0e469300f56d27ee8cea9025dc01c67d9d5a8048 [file] [log] [blame]
Ben Lindstromc4b72252001-06-09 01:09:51 +00001# $OpenBSD: sshd_config,v 1.40 2001/05/31 13:08:04 markus Exp $
Ben Lindstrom36579d32001-01-29 07:39:26 +00002
Tim Rice59ea0a02001-03-10 13:50:45 -08003# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
4
Damien Miller33804262001-02-04 23:20:18 +11005# This is the sshd server system-wide configuration file. See sshd(8)
6# for more information.
Damien Millerd4a8b7e1999-10-27 13:42:43 +10007
8Port 22
Damien Miller8bb73be2000-04-19 16:26:12 +10009#Protocol 2,1
Kevin Steves8ee4f692001-01-09 15:28:46 +000010#ListenAddress 0.0.0.0
Damien Miller34132e52000-01-14 15:45:46 +110011#ListenAddress ::
Ben Lindstromc4b72252001-06-09 01:09:51 +000012
13# HostKey for protocol version 1
Damien Miller886c63a2000-01-20 23:13:36 +110014HostKey /etc/ssh_host_key
Ben Lindstromc4b72252001-06-09 01:09:51 +000015# HostKeys for protocol version 2
Ben Lindstrom531a4452001-03-05 05:17:18 +000016HostKey /etc/ssh_host_rsa_key
Ben Lindstrom4b00c8b2001-03-05 06:05:35 +000017HostKey /etc/ssh_host_dsa_key
Ben Lindstromc4b72252001-06-09 01:09:51 +000018
19# Lifetime and size of ephemeral version 1 server key
Damien Millerd4a8b7e1999-10-27 13:42:43 +100020KeyRegenerationInterval 3600
Ben Lindstromc4b72252001-06-09 01:09:51 +000021ServerKeyBits 768
Damien Miller192bd011999-11-13 23:56:35 +110022
Damien Miller886c63a2000-01-20 23:13:36 +110023# Logging
Kevin Steves8ee4f692001-01-09 15:28:46 +000024SyslogFacility AUTH
Damien Miller192bd011999-11-13 23:56:35 +110025LogLevel INFO
Damien Miller886c63a2000-01-20 23:13:36 +110026#obsoletes QuietMode and FascistLogging
Damien Miller9ba30241999-11-11 21:07:00 +110027
Ben Lindstromc4b72252001-06-09 01:09:51 +000028# Authentication:
29
30LoginGraceTime 600
31PermitRootLogin yes
32StrictModes yes
33
Damien Millerd4a8b7e1999-10-27 13:42:43 +100034RSAAuthentication yes
Ben Lindstrombfb3a0e2001-06-05 20:25:05 +000035PubkeyAuthentication yes
36#AuthorizedKeysFile %h/.ssh/authorized_keys
37#AuthorizedKeysFile2 %h/.ssh/authorized_keys2
Damien Millerd4a8b7e1999-10-27 13:42:43 +100038
Ben Lindstromc4b72252001-06-09 01:09:51 +000039# rhosts authentication should not be used
40RhostsAuthentication no
41# Don't read the user's ~/.rhosts and ~/.shosts files
42IgnoreRhosts yes
43# For this to work you will also need host keys in /etc/ssh_known_hosts
44RhostsRSAAuthentication no
45# similar for protocol version 2
46HostbasedAuthentication no
47# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
48#IgnoreUserKnownHosts yes
49
Damien Millerd4a8b7e1999-10-27 13:42:43 +100050# To disable tunneled clear text passwords, change to no here!
51PasswordAuthentication yes
52PermitEmptyPasswords no
Damien Miller33804262001-02-04 23:20:18 +110053
Damien Millerf8154422001-04-25 22:44:14 +100054# Uncomment to disable s/key passwords
55#ChallengeResponseAuthentication no
56
57# Uncomment to enable PAM keyboard-interactive authentication
58# Warning: enabling this may bypass the setting of 'PasswordAuthentication'
59#PAMAuthenticationViaKbdInt yes
Damien Millerd4a8b7e1999-10-27 13:42:43 +100060
Damien Miller886c63a2000-01-20 23:13:36 +110061# To change Kerberos options
Damien Millerd4a8b7e1999-10-27 13:42:43 +100062#KerberosAuthentication no
63#KerberosOrLocalPasswd yes
64#AFSTokenPassing no
65#KerberosTicketCleanup no
Damien Miller886c63a2000-01-20 23:13:36 +110066
Damien Millerd4a8b7e1999-10-27 13:42:43 +100067# Kerberos TGT Passing does only work with the AFS kaserver
68#KerberosTgtPassing yes
Damien Miller886c63a2000-01-20 23:13:36 +110069
Ben Lindstromc4b72252001-06-09 01:09:51 +000070X11Forwarding no
71X11DisplayOffset 10
72PrintMotd yes
73#PrintLastLog no
74KeepAlive yes
Kevin Steves8ee4f692001-01-09 15:28:46 +000075#CheckMail yes
Damien Millerc30d35c2000-08-30 09:40:09 +110076#UseLogin no
Damien Millerf6d9e222000-06-18 14:50:44 +100077
Damien Miller942da032000-08-18 13:59:06 +100078#MaxStartups 10:30:60
Ben Lindstrom48bd7c12001-01-09 00:35:42 +000079#Banner /etc/issue.net
Damien Miller33804262001-02-04 23:20:18 +110080#ReverseMappingCheck yes
Ben Lindstrome9d04442001-02-10 23:26:35 +000081
82Subsystem sftp /usr/libexec/sftp-server