2006-02-05 01:32:13 +03:00
|
|
|
# $NetBSD: sshd_config,v 1.23 2006/02/04 22:32:14 christos Exp $
|
|
|
|
# $OpenBSD: sshd_config,v 1.73 2005/12/06 22:38:28 reyk Exp $
|
2001-02-07 19:46:40 +03:00
|
|
|
|
2002-06-24 09:48:24 +04: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
|
|
|
|
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
|
2005-04-23 20:53:28 +04:00
|
|
|
#AddressFamily any
|
2001-02-07 19:46:40 +03:00
|
|
|
#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
|
2005-02-13 08:57:25 +03:00
|
|
|
#KeyRegenerationInterval 1h
|
2002-03-08 05:00:50 +03:00
|
|
|
#ServerKeyBits 768
|
2001-02-07 19:46:40 +03:00
|
|
|
|
|
|
|
# Logging
|
2006-02-05 01:32:13 +03:00
|
|
|
# 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:
|
|
|
|
|
2004-05-01 10:06:33 +04:00
|
|
|
# Slow machines or long keys may require more processing time.
|
|
|
|
LoginGraceTime 600
|
2002-03-08 05:00:50 +03:00
|
|
|
#PermitRootLogin no
|
|
|
|
#StrictModes yes
|
2005-02-13 08:57:25 +03:00
|
|
|
#MaxAuthTries 6
|
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
|
|
|
|
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
|
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!
|
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
|
2005-02-13 08:57:25 +03:00
|
|
|
#KerberosGetAFSToken no
|
2002-03-08 05:00:50 +03:00
|
|
|
|
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
|
2002-03-08 05:00:50 +03:00
|
|
|
#X11Forwarding no
|
|
|
|
#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
|
2002-05-15 03:33:07 +04:00
|
|
|
#UsePrivilegeSeparation yes
|
2005-02-28 05:35:10 +03:00
|
|
|
UsePam yes
|
2002-10-01 18:07:26 +04:00
|
|
|
#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
|
2002-03-08 05:00:50 +03:00
|
|
|
#MaxStartups 10
|
2006-02-05 01:32:13 +03:00
|
|
|
#PermitTunnel no
|
2005-02-13 08:57:25 +03:00
|
|
|
|
2002-03-08 05:00:50 +03:00
|
|
|
# no default banner path
|
|
|
|
#Banner /some/path
|
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
|