blob: 90df340a6f80f5add80402a6cb3ebe3fb99a75a1 [file] [log] [blame]
Ben Lindstrombfb3a0e2001-06-05 20:25:05 +00001# $OpenBSD: sshd_config,v 1.39 2001/05/20 17:20:36 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 ::
Damien Miller886c63a2000-01-20 23:13:36 +110012HostKey /etc/ssh_host_key
Ben Lindstrom531a4452001-03-05 05:17:18 +000013HostKey /etc/ssh_host_rsa_key
Ben Lindstrom4b00c8b2001-03-05 06:05:35 +000014HostKey /etc/ssh_host_dsa_key
Damien Millerd4a8b7e1999-10-27 13:42:43 +100015ServerKeyBits 768
16LoginGraceTime 600
17KeyRegenerationInterval 3600
18PermitRootLogin yes
Damien Miller886c63a2000-01-20 23:13:36 +110019#
20# Don't read ~/.rhosts and ~/.shosts files
21IgnoreRhosts yes
22# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
23#IgnoreUserKnownHosts yes
Damien Millerd4a8b7e1999-10-27 13:42:43 +100024StrictModes yes
Damien Miller32265091999-11-12 11:33:04 +110025X11Forwarding no
Damien Millerd4a8b7e1999-10-27 13:42:43 +100026X11DisplayOffset 10
Damien Millerd4a8b7e1999-10-27 13:42:43 +100027PrintMotd yes
Ben Lindstrom7bfff362001-03-26 05:45:53 +000028#PrintLastLog no
Damien Millerd4a8b7e1999-10-27 13:42:43 +100029KeepAlive yes
Damien Miller192bd011999-11-13 23:56:35 +110030
Damien Miller886c63a2000-01-20 23:13:36 +110031# Logging
Kevin Steves8ee4f692001-01-09 15:28:46 +000032SyslogFacility AUTH
Damien Miller192bd011999-11-13 23:56:35 +110033LogLevel INFO
Damien Miller886c63a2000-01-20 23:13:36 +110034#obsoletes QuietMode and FascistLogging
Damien Miller9ba30241999-11-11 21:07:00 +110035
Damien Miller192bd011999-11-13 23:56:35 +110036RhostsAuthentication no
Damien Miller32265091999-11-12 11:33:04 +110037#
Damien Miller886c63a2000-01-20 23:13:36 +110038# For this to work you will also need host keys in /etc/ssh_known_hosts
39RhostsRSAAuthentication no
Ben Lindstrom5eabda32001-04-12 23:34:34 +000040# similar for protocol version 2
41HostbasedAuthentication no
Damien Miller32265091999-11-12 11:33:04 +110042#
Damien Millerd4a8b7e1999-10-27 13:42:43 +100043RSAAuthentication yes
Ben Lindstrombfb3a0e2001-06-05 20:25:05 +000044PubkeyAuthentication yes
45#AuthorizedKeysFile %h/.ssh/authorized_keys
46#AuthorizedKeysFile2 %h/.ssh/authorized_keys2
Damien Millerd4a8b7e1999-10-27 13:42:43 +100047
48# To disable tunneled clear text passwords, change to no here!
49PasswordAuthentication yes
50PermitEmptyPasswords no
Damien Miller33804262001-02-04 23:20:18 +110051
Damien Millerf8154422001-04-25 22:44:14 +100052# Uncomment to disable s/key passwords
53#ChallengeResponseAuthentication no
54
55# Uncomment to enable PAM keyboard-interactive authentication
56# Warning: enabling this may bypass the setting of 'PasswordAuthentication'
57#PAMAuthenticationViaKbdInt yes
Damien Millerd4a8b7e1999-10-27 13:42:43 +100058
Damien Miller886c63a2000-01-20 23:13:36 +110059# To change Kerberos options
Damien Millerd4a8b7e1999-10-27 13:42:43 +100060#KerberosAuthentication no
61#KerberosOrLocalPasswd yes
62#AFSTokenPassing no
63#KerberosTicketCleanup no
Damien Miller886c63a2000-01-20 23:13:36 +110064
Damien Millerd4a8b7e1999-10-27 13:42:43 +100065# Kerberos TGT Passing does only work with the AFS kaserver
66#KerberosTgtPassing yes
Damien Miller886c63a2000-01-20 23:13:36 +110067
Kevin Steves8ee4f692001-01-09 15:28:46 +000068#CheckMail yes
Damien Millerc30d35c2000-08-30 09:40:09 +110069#UseLogin no
Damien Millerf6d9e222000-06-18 14:50:44 +100070
Damien Miller942da032000-08-18 13:59:06 +100071#MaxStartups 10:30:60
Ben Lindstrom48bd7c12001-01-09 00:35:42 +000072#Banner /etc/issue.net
Damien Miller33804262001-02-04 23:20:18 +110073#ReverseMappingCheck yes
Ben Lindstrome9d04442001-02-10 23:26:35 +000074
75Subsystem sftp /usr/libexec/sftp-server