blob: 9e62e9cf37b94f3107e1128d1edbc5333e068bda [file] [log] [blame]
Damien Miller2bec5c12002-01-22 23:32:07 +11001# $OpenBSD: sshd_config,v 1.44 2002/01/16 17:40:23 stevesk Exp $
Tim Rice59ea0a02001-03-10 13:50:45 -08002
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
Damien Miller2bec5c12002-01-22 23:32:07 +11006# The stategy used for options in the default sshd_config shipped with
7# OpenSSH is to specify options with their default value where
8# possible, but leave them commented. Uncommented options change a
9# default value.
10
11#Port 22
Damien Miller8bb73be2000-04-19 16:26:12 +100012#Protocol 2,1
Kevin Steves8ee4f692001-01-09 15:28:46 +000013#ListenAddress 0.0.0.0
Damien Miller34132e52000-01-14 15:45:46 +110014#ListenAddress ::
Ben Lindstromc4b72252001-06-09 01:09:51 +000015
16# HostKey for protocol version 1
Damien Miller2bec5c12002-01-22 23:32:07 +110017#HostKey /etc/ssh_host_key
Ben Lindstromc4b72252001-06-09 01:09:51 +000018# HostKeys for protocol version 2
Damien Miller2bec5c12002-01-22 23:32:07 +110019#HostKey /etc/ssh_host_rsa_key
20#HostKey /etc/ssh_host_dsa_key
Ben Lindstromc4b72252001-06-09 01:09:51 +000021
22# Lifetime and size of ephemeral version 1 server key
Damien Miller2bec5c12002-01-22 23:32:07 +110023#KeyRegenerationInterval 3600
24#ServerKeyBits 768
Damien Miller192bd011999-11-13 23:56:35 +110025
Damien Miller886c63a2000-01-20 23:13:36 +110026# Logging
Damien Miller886c63a2000-01-20 23:13:36 +110027#obsoletes QuietMode and FascistLogging
Damien Miller2bec5c12002-01-22 23:32:07 +110028#SyslogFacility AUTH
29#LogLevel INFO
Damien Miller9ba30241999-11-11 21:07:00 +110030
Ben Lindstromc4b72252001-06-09 01:09:51 +000031# Authentication:
32
Damien Miller2bec5c12002-01-22 23:32:07 +110033#LoginGraceTime 600
34#PermitRootLogin yes
35#StrictModes yes
Ben Lindstromc4b72252001-06-09 01:09:51 +000036
Damien Miller2bec5c12002-01-22 23:32:07 +110037#RSAAuthentication yes
38#PubkeyAuthentication yes
39#AuthorizedKeysFile .ssh/authorized_keys
Damien Millerd4a8b7e1999-10-27 13:42:43 +100040
Ben Lindstromc4b72252001-06-09 01:09:51 +000041# rhosts authentication should not be used
Damien Miller2bec5c12002-01-22 23:32:07 +110042#RhostsAuthentication no
Ben Lindstromc4b72252001-06-09 01:09:51 +000043# Don't read the user's ~/.rhosts and ~/.shosts files
Damien Miller2bec5c12002-01-22 23:32:07 +110044#IgnoreRhosts yes
Ben Lindstromc4b72252001-06-09 01:09:51 +000045# For this to work you will also need host keys in /etc/ssh_known_hosts
Damien Miller2bec5c12002-01-22 23:32:07 +110046#RhostsRSAAuthentication no
Ben Lindstromc4b72252001-06-09 01:09:51 +000047# similar for protocol version 2
Damien Miller2bec5c12002-01-22 23:32:07 +110048#HostbasedAuthentication no
49# Change to yes if you don't trust ~/.ssh/known_hosts for
50# RhostsRSAAuthentication and HostbasedAuthentication
51#IgnoreUserKnownHosts no
Ben Lindstromc4b72252001-06-09 01:09:51 +000052
Damien Millerd4a8b7e1999-10-27 13:42:43 +100053# To disable tunneled clear text passwords, change to no here!
Damien Miller2bec5c12002-01-22 23:32:07 +110054#PasswordAuthentication yes
55#PermitEmptyPasswords no
Damien Miller33804262001-02-04 23:20:18 +110056
Damien Miller2bec5c12002-01-22 23:32:07 +110057# Change to no to disable s/key passwords
58#ChallengeResponseAuthentication yes
Damien Millerf8154422001-04-25 22:44:14 +100059
Damien Miller2bec5c12002-01-22 23:32:07 +110060# Kerberos options
61# KerberosAuthentication automatically enabled if keyfile exists
62#KerberosAuthentication yes
63#KerberosOrLocalPasswd yes
64#KerberosTicketCleanup yes
65
66# AFSTokenPassing automatically enabled if k_hasafs() is true
67#AFSTokenPassing yes
68
69# Kerberos TGT Passing only works with the AFS kaserver
70#KerberosTgtPassing no
71
72# Set this to 'yes' to enable PAM keyboard-interactive authentication
Damien Millerf8154422001-04-25 22:44:14 +100073# Warning: enabling this may bypass the setting of 'PasswordAuthentication'
74#PAMAuthenticationViaKbdInt yes
Damien Millerd4a8b7e1999-10-27 13:42:43 +100075
Damien Miller2bec5c12002-01-22 23:32:07 +110076#X11Forwarding no
77#X11DisplayOffset 10
78#PrintMotd yes
79#PrintLastLog yes
80#KeepAlive yes
Damien Millerc30d35c2000-08-30 09:40:09 +110081#UseLogin no
Damien Millerf6d9e222000-06-18 14:50:44 +100082
Damien Miller2bec5c12002-01-22 23:32:07 +110083#MaxStartups 10
84# no default banner path
85#Banner /some/path
86#ReverseMappingCheck no
Ben Lindstrome9d04442001-02-10 23:26:35 +000087
Damien Miller2bec5c12002-01-22 23:32:07 +110088# override default of no subsystems
Ben Lindstrome9d04442001-02-10 23:26:35 +000089Subsystem sftp /usr/libexec/sftp-server