NetBSD/crypto/dist/ssh/sshd_config

109 lines
2.7 KiB
Plaintext
Raw Normal View History

# $NetBSD: sshd_config,v 1.29 2008/01/28 13:57:02 christos Exp $
2007-12-18 05:35:25 +03:00
# $OpenBSD: sshd_config,v 1.75 2007/03/19 01:01:29 djm Exp $
2001-02-07 19:46:40 +03:00
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
2001-02-07 19:46:40 +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
2005-04-23 20:53:28 +04:00
#AddressFamily any
2001-02-07 19:46:40 +03:00
#ListenAddress 0.0.0.0
#ListenAddress ::
2007-12-18 05:35:25 +03:00
# Disable legacy (protocol version 1) support in the server for new
# installations. In future the default will change to require explicit
# activation of protocol 1
Protocol 2
# HostKey for protocol version 1
2002-03-11 07:57:55 +03:00
#HostKey /etc/ssh/ssh_host_key
# 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
# Lifetime and size of ephemeral version 1 server key
2005-02-13 08:57:25 +03:00
#KeyRegenerationInterval 1h
#ServerKeyBits 768
2001-02-07 19:46:40 +03:00
# Logging
2006-02-05 01:32:13 +03:00
# obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
#LogLevel INFO
2001-02-07 19:46:40 +03:00
# Authentication:
# Slow machines or long keys may require more processing time.
LoginGraceTime 600
#PermitRootLogin no
#StrictModes yes
2005-02-13 08:57:25 +03:00
#MaxAuthTries 6
#RSAAuthentication yes
#PubkeyAuthentication yes
#AuthorizedKeysFile .ssh/authorized_keys
2002-03-11 07:57:55 +03:00
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#RhostsRSAAuthentication no
# similar for protocol version 2
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts no
2005-02-13 08:57:25 +03:00
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes
2001-02-07 19:46:40 +03:00
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no
2001-02-07 19:46:40 +03:00
# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
2001-02-07 19:46:40 +03:00
# Kerberos options
#KerberosAuthentication no
2001-02-07 19:46:40 +03:00
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
2005-02-13 08:57:25 +03:00
#KerberosGetAFSToken no
2005-02-13 08:57:25 +03:00
# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
2001-02-07 19:46:40 +03:00
2005-02-13 08:57:25 +03:00
#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no
2007-12-21 04:03:58 +03:00
# If you use xorg from pkgsrc then uncomment the following line.
#XAuthLocation /usr/pkg/bin/xauth
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
2005-02-13 08:57:25 +03:00
#TCPKeepAlive yes
2001-02-07 19:46:40 +03:00
#UseLogin no
#UsePrivilegeSeparation yes
2005-02-28 05:35:10 +03:00
UsePam yes
#PermitUserEnvironment no
2006-02-05 01:32:13 +03:00
#Compression delayed
2005-02-13 08:57:25 +03:00
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10
2006-02-05 01:32:13 +03:00
#PermitTunnel no
2005-02-13 08:57:25 +03:00
# no default banner path
#Banner /some/path
2001-02-07 19:46:40 +03:00
# override default of no subsystems
2001-02-07 19:46:40 +03:00
Subsystem sftp /usr/libexec/sftp-server
2006-09-29 01:22:14 +04:00
# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# ForceCommand cvs server