2002-05-15 03:33:07 +04:00
|
|
|
# $NetBSD: sshd_config,v 1.14 2002/05/14 23:33:08 itojun Exp $
|
2002-05-13 06:58:17 +04:00
|
|
|
# $OpenBSD: sshd_config,v 1.52 2002/05/04 02:39:35 deraadt Exp $
|
2001-02-07 19:46:40 +03:00
|
|
|
|
|
|
|
# This is the sshd server system-wide configuration file. See sshd(8)
|
|
|
|
# for more information.
|
|
|
|
|
2002-03-08 05:00:50 +03:00
|
|
|
# The strategy used for options in the default sshd_config shipped with
|
|
|
|
# OpenSSH is to specify options with their default value where
|
|
|
|
# possible, but leave them commented. Uncommented options change a
|
|
|
|
# default value.
|
|
|
|
|
|
|
|
#Port 22
|
2001-02-07 19:46:40 +03:00
|
|
|
#Protocol 2,1
|
|
|
|
#ListenAddress 0.0.0.0
|
|
|
|
#ListenAddress ::
|
2001-06-23 23:37:38 +04:00
|
|
|
|
|
|
|
# HostKey for protocol version 1
|
2002-03-11 07:57:55 +03:00
|
|
|
#HostKey /etc/ssh/ssh_host_key
|
2001-06-23 23:37:38 +04:00
|
|
|
# HostKeys for protocol version 2
|
2002-03-11 07:57:55 +03:00
|
|
|
#HostKey /etc/ssh/ssh_host_rsa_key
|
|
|
|
#HostKey /etc/ssh/ssh_host_dsa_key
|
2001-06-23 23:37:38 +04:00
|
|
|
|
|
|
|
# Lifetime and size of ephemeral version 1 server key
|
2002-03-08 05:00:50 +03:00
|
|
|
#KeyRegenerationInterval 3600
|
|
|
|
#ServerKeyBits 768
|
2001-02-07 19:46:40 +03:00
|
|
|
|
|
|
|
# Logging
|
|
|
|
#obsoletes QuietMode and FascistLogging
|
2002-03-08 05:00:50 +03:00
|
|
|
#SyslogFacility AUTH
|
|
|
|
#LogLevel INFO
|
2001-02-07 19:46:40 +03:00
|
|
|
|
2001-06-23 23:37:38 +04:00
|
|
|
# Authentication:
|
|
|
|
|
2002-03-08 05:00:50 +03:00
|
|
|
#LoginGraceTime 600
|
|
|
|
#PermitRootLogin no
|
|
|
|
#StrictModes yes
|
2001-06-23 23:37:38 +04:00
|
|
|
|
2002-03-08 05:00:50 +03:00
|
|
|
#RSAAuthentication yes
|
|
|
|
#PubkeyAuthentication yes
|
|
|
|
#AuthorizedKeysFile .ssh/authorized_keys
|
2001-06-23 23:37:38 +04:00
|
|
|
|
|
|
|
# rhosts authentication should not be used
|
2002-03-08 05:00:50 +03:00
|
|
|
#RhostsAuthentication no
|
2001-06-23 23:37:38 +04:00
|
|
|
# Don't read the user's ~/.rhosts and ~/.shosts files
|
2002-03-08 05:00:50 +03:00
|
|
|
#IgnoreRhosts yes
|
|
|
|
#IgnoreRootRhosts yes
|
2002-03-11 07:57:55 +03:00
|
|
|
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
|
2002-03-08 05:00:50 +03:00
|
|
|
#RhostsRSAAuthentication no
|
2001-05-15 19:26:07 +04:00
|
|
|
# similar for protocol version 2
|
2002-03-08 05:00:50 +03:00
|
|
|
#HostbasedAuthentication no
|
|
|
|
# Change to yes if you don't trust ~/.ssh/known_hosts for
|
|
|
|
# RhostsRSAAuthentication and HostbasedAuthentication
|
|
|
|
#IgnoreUserKnownHosts no
|
2001-02-07 19:46:40 +03:00
|
|
|
|
|
|
|
# To disable tunneled clear text passwords, change to no here!
|
2002-03-08 05:00:50 +03:00
|
|
|
#PasswordAuthentication yes
|
|
|
|
#PermitEmptyPasswords no
|
2001-02-07 19:46:40 +03:00
|
|
|
|
2002-03-08 05:00:50 +03:00
|
|
|
# Change to no to disable s/key passwords
|
|
|
|
#ChallengeResponseAuthentication yes
|
2001-02-07 19:46:40 +03:00
|
|
|
|
2002-03-08 05:00:50 +03:00
|
|
|
# Kerberos options
|
2002-05-13 06:58:17 +04:00
|
|
|
#KerberosAuthentication no
|
2001-02-07 19:46:40 +03:00
|
|
|
#KerberosOrLocalPasswd yes
|
2002-03-08 05:00:50 +03:00
|
|
|
#KerberosTicketCleanup yes
|
|
|
|
|
2002-04-22 11:59:35 +04:00
|
|
|
#AFSTokenPassing no
|
2001-02-07 19:46:40 +03:00
|
|
|
|
2002-03-08 05:00:50 +03:00
|
|
|
# Kerberos TGT Passing only works with the AFS kaserver
|
|
|
|
#KerberosTgtPassing no
|
2001-02-07 19:46:40 +03:00
|
|
|
|
2002-03-08 05:00:50 +03:00
|
|
|
#X11Forwarding no
|
|
|
|
#X11DisplayOffset 10
|
|
|
|
#X11UseLocalhost yes
|
|
|
|
#PrintMotd yes
|
|
|
|
#PrintLastLog yes
|
|
|
|
#KeepAlive yes
|
2001-02-07 19:46:40 +03:00
|
|
|
#UseLogin no
|
2002-05-15 03:33:07 +04:00
|
|
|
#UsePrivilegeSeparation yes
|
2001-02-07 19:46:40 +03:00
|
|
|
|
2002-03-08 05:00:50 +03:00
|
|
|
#MaxStartups 10
|
|
|
|
# no default banner path
|
|
|
|
#Banner /some/path
|
|
|
|
#VerifyReverseMapping no
|
2001-02-07 19:46:40 +03:00
|
|
|
|
2002-03-08 05:00:50 +03:00
|
|
|
# override default of no subsystems
|
2001-02-07 19:46:40 +03:00
|
|
|
Subsystem sftp /usr/libexec/sftp-server
|