summaryrefslogtreecommitdiff
path: root/template/etc/ssh/sshd_config
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2016-01-18 21:28:33 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2016-01-18 21:28:33 +0100
commit00909e6b4c8c43112c256a62ae48d2ccbb76f1a9 (patch)
treeb6d0159947b7bdadedbef71dd1625a072bf97b32 /template/etc/ssh/sshd_config
parente6d0f191eb0ed2b14e9289ddea90da32d5179071 (diff)
downloadOpenBSD-firewall-00909e6b4c8c43112c256a62ae48d2ccbb76f1a9.tar.gz
OpenBSD-firewall-00909e6b4c8c43112c256a62ae48d2ccbb76f1a9.tar.bz2
updated template config to OpenBSD 5.8
Diffstat (limited to 'template/etc/ssh/sshd_config')
-rw-r--r--template/etc/ssh/sshd_config58
1 files changed, 32 insertions, 26 deletions
diff --git a/template/etc/ssh/sshd_config b/template/etc/ssh/sshd_config
index 9002c2d..f89dda3 100644
--- a/template/etc/ssh/sshd_config
+++ b/template/etc/ssh/sshd_config
@@ -1,32 +1,35 @@
-# $OpenBSD: sshd_config,v 1.77 2008/02/08 23:24:07 djm Exp $
+# $OpenBSD: sshd_config,v 1.97 2015/08/06 14:53:21 deraadt Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# 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
+# possible, but leave them commented. Uncommented options override the
# default value.
#Port 22
#AddressFamily any
-ListenAddress 0.0.0.0
+#ListenAddress 0.0.0.0
#ListenAddress ::
-# 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
+# The default requires explicit activation of protocol 1
+#Protocol 2
# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key
+#HostKey /etc/ssh/ssh_host_ecdsa_key
+#HostKey /etc/ssh/ssh_host_ed25519_key
# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h
-#ServerKeyBits 768
+#ServerKeyBits 1024
+
+# Ciphers and keying
+#RekeyLimit default none
# Logging
# obsoletes QuietMode and FascistLogging
@@ -36,13 +39,22 @@ HostKey /etc/ssh/ssh_host_rsa_key
# Authentication:
#LoginGraceTime 2m
-#PermitRootLogin yes
+PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
+#MaxSessions 10
#RSAAuthentication yes
#PubkeyAuthentication yes
-#AuthorizedKeysFile .ssh/authorized_keys
+
+# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
+# but this is overridden so installations will only check .ssh/authorized_keys
+AuthorizedKeysFile .ssh/authorized_keys
+
+#AuthorizedPrincipalsFile none
+
+#AuthorizedKeysCommand none
+#AuthorizedKeysCommandUser nobody
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#RhostsRSAAuthentication no
@@ -55,50 +67,44 @@ HostKey /etc/ssh/ssh_host_rsa_key
#IgnoreRhosts yes
# To disable tunneled clear text passwords, change to no here!
-#PasswordAuthentication yes
+PasswordAuthentication yes
#PermitEmptyPasswords no
# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
-# Kerberos options
-#KerberosAuthentication no
-#KerberosOrLocalPasswd yes
-#KerberosTicketCleanup yes
-#KerberosGetAFSToken no
-
-# GSSAPI options
-#GSSAPIAuthentication no
-#GSSAPICleanupCredentials yes
-
+#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no
#X11DisplayOffset 10
#X11UseLocalhost yes
+#PermitTTY yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
-#UsePrivilegeSeparation yes
+UsePrivilegeSeparation sandbox # Default for new installations.
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
-#UseDNS yes
+#UseDNS no
#PidFile /var/run/sshd.pid
-#MaxStartups 10
+#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
+#VersionAddendum none
# no default banner path
#Banner none
-# Don't # override default of no subsystems
-#Subsystem sftp /usr/libexec/sftp-server
+# override default of no subsystems
+Subsystem sftp /usr/libexec/sftp-server
# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
+# PermitTTY no
# ForceCommand cvs server