blob: 8d0af1060897d92b8c77937ed2f511ae44437ef1 [file] [log] [blame]
Ben Lindstrome9d04442001-02-10 23:26:35 +00001# $OpenBSD: sshd_config,v 1.32 2001/02/06 22:07:50 deraadt Exp $
Ben Lindstrom36579d32001-01-29 07:39:26 +00002
Damien Miller33804262001-02-04 23:20:18 +11003# This is the sshd server system-wide configuration file. See sshd(8)
4# for more information.
Damien Millerd4a8b7e1999-10-27 13:42:43 +10005
6Port 22
Damien Miller8bb73be2000-04-19 16:26:12 +10007#Protocol 2,1
Kevin Steves8ee4f692001-01-09 15:28:46 +00008#ListenAddress 0.0.0.0
Damien Miller34132e52000-01-14 15:45:46 +11009#ListenAddress ::
Damien Miller886c63a2000-01-20 23:13:36 +110010HostKey /etc/ssh_host_key
Damien Miller0bc1bd82000-11-13 22:57:25 +110011HostKey /etc/ssh_host_dsa_key
Kevin Steves8ee4f692001-01-09 15:28:46 +000012#HostKey /etc/ssh_host_rsa_key
Damien Millerd4a8b7e1999-10-27 13:42:43 +100013ServerKeyBits 768
14LoginGraceTime 600
15KeyRegenerationInterval 3600
16PermitRootLogin yes
Damien Miller886c63a2000-01-20 23:13:36 +110017#
18# Don't read ~/.rhosts and ~/.shosts files
19IgnoreRhosts yes
20# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
21#IgnoreUserKnownHosts yes
Damien Millerd4a8b7e1999-10-27 13:42:43 +100022StrictModes yes
Damien Miller32265091999-11-12 11:33:04 +110023X11Forwarding no
Damien Millerd4a8b7e1999-10-27 13:42:43 +100024X11DisplayOffset 10
Damien Millerd4a8b7e1999-10-27 13:42:43 +100025PrintMotd yes
26KeepAlive yes
Damien Miller192bd011999-11-13 23:56:35 +110027
Damien Miller886c63a2000-01-20 23:13:36 +110028# Logging
Kevin Steves8ee4f692001-01-09 15:28:46 +000029SyslogFacility AUTH
Damien Miller192bd011999-11-13 23:56:35 +110030LogLevel INFO
Damien Miller886c63a2000-01-20 23:13:36 +110031#obsoletes QuietMode and FascistLogging
Damien Miller9ba30241999-11-11 21:07:00 +110032
Damien Miller192bd011999-11-13 23:56:35 +110033RhostsAuthentication no
Damien Miller32265091999-11-12 11:33:04 +110034#
Damien Miller886c63a2000-01-20 23:13:36 +110035# For this to work you will also need host keys in /etc/ssh_known_hosts
36RhostsRSAAuthentication no
Damien Miller32265091999-11-12 11:33:04 +110037#
Damien Millerd4a8b7e1999-10-27 13:42:43 +100038RSAAuthentication yes
39
40# To disable tunneled clear text passwords, change to no here!
41PasswordAuthentication yes
42PermitEmptyPasswords no
Damien Miller33804262001-02-04 23:20:18 +110043
Damien Miller886c63a2000-01-20 23:13:36 +110044# Uncomment to disable s/key passwords
Ben Lindstrome9d04442001-02-10 23:26:35 +000045#ChallengeResponseAuthentication no
Damien Millerd4a8b7e1999-10-27 13:42:43 +100046
Damien Miller886c63a2000-01-20 23:13:36 +110047# To change Kerberos options
Damien Millerd4a8b7e1999-10-27 13:42:43 +100048#KerberosAuthentication no
49#KerberosOrLocalPasswd yes
50#AFSTokenPassing no
51#KerberosTicketCleanup no
Damien Miller886c63a2000-01-20 23:13:36 +110052
Damien Millerd4a8b7e1999-10-27 13:42:43 +100053# Kerberos TGT Passing does only work with the AFS kaserver
54#KerberosTgtPassing yes
Damien Miller886c63a2000-01-20 23:13:36 +110055
Kevin Steves8ee4f692001-01-09 15:28:46 +000056#CheckMail yes
Damien Millerc30d35c2000-08-30 09:40:09 +110057#UseLogin no
Damien Millerf6d9e222000-06-18 14:50:44 +100058
Damien Miller942da032000-08-18 13:59:06 +100059#MaxStartups 10:30:60
Ben Lindstrom48bd7c12001-01-09 00:35:42 +000060#Banner /etc/issue.net
Damien Miller33804262001-02-04 23:20:18 +110061#ReverseMappingCheck yes
Ben Lindstrome9d04442001-02-10 23:26:35 +000062
63Subsystem sftp /usr/libexec/sftp-server