2001-01-29 15:39:26 +08:00
|
|
|
# $OpenBSD: sshd_config,v 1.27 2001/01/29 01:58:19 niklas Exp $
|
|
|
|
|
1999-10-27 11:42:43 +08:00
|
|
|
# This is ssh server systemwide configuration file.
|
|
|
|
|
|
|
|
Port 22
|
2000-04-19 14:26:12 +08:00
|
|
|
#Protocol 2,1
|
2001-01-09 23:28:46 +08:00
|
|
|
#ListenAddress 0.0.0.0
|
2000-01-14 12:45:46 +08:00
|
|
|
#ListenAddress ::
|
2000-01-20 20:13:36 +08:00
|
|
|
HostKey /etc/ssh_host_key
|
2000-11-13 19:57:25 +08:00
|
|
|
HostKey /etc/ssh_host_dsa_key
|
2001-01-09 23:28:46 +08:00
|
|
|
#HostKey /etc/ssh_host_rsa_key
|
1999-10-27 11:42:43 +08:00
|
|
|
ServerKeyBits 768
|
|
|
|
LoginGraceTime 600
|
|
|
|
KeyRegenerationInterval 3600
|
|
|
|
PermitRootLogin yes
|
2000-01-20 20:13:36 +08:00
|
|
|
#
|
|
|
|
# Don't read ~/.rhosts and ~/.shosts files
|
|
|
|
IgnoreRhosts yes
|
|
|
|
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
|
|
|
|
#IgnoreUserKnownHosts yes
|
1999-10-27 11:42:43 +08:00
|
|
|
StrictModes yes
|
1999-11-12 08:33:04 +08:00
|
|
|
X11Forwarding no
|
1999-10-27 11:42:43 +08:00
|
|
|
X11DisplayOffset 10
|
|
|
|
PrintMotd yes
|
|
|
|
KeepAlive yes
|
1999-11-13 20:56:35 +08:00
|
|
|
|
2000-01-20 20:13:36 +08:00
|
|
|
# Logging
|
2001-01-09 23:28:46 +08:00
|
|
|
SyslogFacility AUTH
|
1999-11-13 20:56:35 +08:00
|
|
|
LogLevel INFO
|
2000-01-20 20:13:36 +08:00
|
|
|
#obsoletes QuietMode and FascistLogging
|
1999-11-11 18:07:00 +08:00
|
|
|
|
1999-11-13 20:56:35 +08:00
|
|
|
RhostsAuthentication no
|
1999-11-12 08:33:04 +08:00
|
|
|
#
|
2000-01-20 20:13:36 +08:00
|
|
|
# For this to work you will also need host keys in /etc/ssh_known_hosts
|
|
|
|
RhostsRSAAuthentication no
|
1999-11-12 08:33:04 +08:00
|
|
|
#
|
1999-10-27 11:42:43 +08:00
|
|
|
RSAAuthentication yes
|
|
|
|
|
|
|
|
# To disable tunneled clear text passwords, change to no here!
|
|
|
|
PasswordAuthentication yes
|
|
|
|
PermitEmptyPasswords no
|
2000-01-20 20:13:36 +08:00
|
|
|
# Uncomment to disable s/key passwords
|
1999-10-27 11:42:43 +08:00
|
|
|
#SkeyAuthentication no
|
2000-10-14 13:23:11 +08:00
|
|
|
#KbdInteractiveAuthentication yes
|
1999-10-27 11:42:43 +08:00
|
|
|
|
2000-01-20 20:13:36 +08:00
|
|
|
# To change Kerberos options
|
1999-10-27 11:42:43 +08:00
|
|
|
#KerberosAuthentication no
|
|
|
|
#KerberosOrLocalPasswd yes
|
|
|
|
#AFSTokenPassing no
|
|
|
|
#KerberosTicketCleanup no
|
2000-01-20 20:13:36 +08:00
|
|
|
|
1999-10-27 11:42:43 +08:00
|
|
|
# Kerberos TGT Passing does only work with the AFS kaserver
|
|
|
|
#KerberosTgtPassing yes
|
2000-01-20 20:13:36 +08:00
|
|
|
|
2001-01-09 23:28:46 +08:00
|
|
|
#CheckMail yes
|
2000-08-30 06:40:09 +08:00
|
|
|
#UseLogin no
|
2000-06-18 12:50:44 +08:00
|
|
|
|
2000-09-05 10:34:53 +08:00
|
|
|
# Uncomment if you want to enable sftp
|
|
|
|
#Subsystem sftp /usr/libexec/sftp-server
|
2000-08-18 11:59:06 +08:00
|
|
|
#MaxStartups 10:30:60
|
2001-01-09 08:35:42 +08:00
|
|
|
#Banner /etc/issue.net
|