components/openssh/patches/040-default_config_files.patch
author Tomas Kuthan <tomas.kuthan@oracle.com>
Wed, 20 Apr 2016 13:13:57 -0700
changeset 5819 c5f05bd2a9bc
parent 5544 16204c8a93ff
child 5820 cef0da89f9ee
permissions -rw-r--r--
PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates 22931214 upgrade OpenSSH to 7.2p2 22931349 problem in UTILITY/OPENSSH 20955968 remove servconf.c portion of 003-last_login.patch when upgrading to OpenSSH 7.2 22489925 Re-enable Curve25519 in OpenSSH
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     1
#
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     2
# This patch contains changes to the default SSH system configurations for
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     3
# /etc/ssh/sshd_config and /etc/ssh/ssh_config on Solaris.
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     4
#
5819
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
     5
# This is a Solaris specific patch and will not be contributed back to the
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     6
# upstream community.
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     7
#
5819
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
     8
diff -pur old/ssh_config new/ssh_config
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
     9
--- old/ssh_config
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
    10
+++ new/ssh_config
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    11
@@ -24,8 +24,9 @@
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    12
 #   RSAAuthentication yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    13
 #   PasswordAuthentication yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    14
 #   HostbasedAuthentication no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    15
-#   GSSAPIAuthentication no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    16
+#   GSSAPIAuthentication yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    17
 #   GSSAPIDelegateCredentials no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    18
+#   GSSAPIKeyExchange yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    19
 #   BatchMode no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    20
 #   CheckHostIP yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    21
 #   AddressFamily any
5819
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
    22
@@ -48,3 +49,7 @@
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    23
 #   VisualHostKey no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    24
 #   ProxyCommand ssh -q -W %h:%p gateway.example.com
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    25
 #   RekeyLimit 1G 1h
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    26
+
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    27
+# Send the LANG and LC_* environment variables to server.
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    28
+SendEnv LANG
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    29
+SendEnv LC_*
5819
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
    30
diff -pur old/sshd_config new/sshd_config
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
    31
--- old/sshd_config
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
    32
+++ new/sshd_config
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
    33
@@ -1,133 +1,96 @@
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
    34
-#	$OpenBSD: sshd_config,v 1.98 2016/02/17 05:29:04 djm Exp $
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
    35
+#	$OpenBSD: sshd_config,v 1.97 2015/08/06 14:53:21 deraadt Exp $
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    36
 
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    37
 # This is the sshd server system-wide configuration file.  See
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    38
 # sshd_config(5) for more information.
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    39
+#
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    40
 
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    41
-# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    42
-
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    43
-# The strategy used for options in the default sshd_config shipped with
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    44
-# OpenSSH is to specify options with their default value where
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    45
-# possible, but leave them commented.  Uncommented options override the
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    46
-# default value.
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    47
-
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    48
+# Listen port (the IANA registered port number for ssh is 22)
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    49
 #Port 22
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    50
+
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    51
+# The default listen address is all interfaces, this may need to be changed
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    52
+# if you wish to restrict the interfaces sshd listens on for a multi homed host.
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    53
+# Multiple ListenAddress entries are allowed.
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    54
 #AddressFamily any
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    55
 #ListenAddress 0.0.0.0
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    56
 #ListenAddress ::
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    57
 
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    58
-# The default requires explicit activation of protocol 1
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    59
-#Protocol 2
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    60
+# If port forwarding is enabled (default), specify if the server can bind to
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    61
+# INADDR_ANY. 
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    62
+# This allows the local port forwarding to work when connections are received
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    63
+# from any remote host.
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    64
+#GatewayPorts no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    65
 
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    66
-# HostKey for protocol version 1
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    67
-#HostKey /etc/ssh/ssh_host_key
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    68
-# HostKeys for protocol version 2
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    69
-#HostKey /etc/ssh/ssh_host_rsa_key
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    70
-#HostKey /etc/ssh/ssh_host_dsa_key
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    71
-#HostKey /etc/ssh/ssh_host_ecdsa_key
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    72
-#HostKey /etc/ssh/ssh_host_ed25519_key
5819
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
    73
-
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
    74
-# Lifetime and size of ephemeral version 1 server key
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
    75
-#KeyRegenerationInterval 1h
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
    76
-#ServerKeyBits 1024
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
    77
-
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
    78
-# Ciphers and keying
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
    79
-#RekeyLimit default none
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
    80
-
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
    81
-# Logging
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
    82
-# obsoletes QuietMode and FascistLogging
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
    83
-#SyslogFacility AUTH
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
    84
-#LogLevel INFO
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    85
+# X11 tunneling options
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    86
+#X11DisplayOffset 10
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    87
+#X11UseLocalhost yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    88
+X11Forwarding yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    89
 
5819
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
    90
-# Authentication:
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    91
+# The maximum number of concurrent unauthenticated connections to sshd.
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    92
+# start:rate:full see sshd(1) for more information.
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    93
+#MaxStartups 10:30:100
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    94
 
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    95
-#LoginGraceTime 2m
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    96
-#PermitRootLogin prohibit-password
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    97
-#StrictModes yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    98
-#MaxAuthTries 6
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    99
-#MaxSessions 10
5819
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   100
+# Banner to be printed before authentication starts.
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   101
+Banner /etc/issue
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   102
 
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   103
-#RSAAuthentication yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   104
-#PubkeyAuthentication yes
5819
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   105
+# Should sshd print the /etc/motd file and check for mail.
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   106
+# On Solaris it is assumed that the login shell will do these (eg /etc/profile).
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   107
+PrintMotd no
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   108
+
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   109
+# KeepAlive specifies whether keep alive messages are sent to the client.
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   110
+# See sshd(1) for detailed description of what this means.
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   111
+# Note that the client may also be sending keep alive messages to the server.
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   112
+#KeepAlive yes
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   113
+
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   114
+# Syslog facility and level 
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   115
+#SyslogFacility auth
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   116
+#LogLevel info
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   117
+
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   118
+#
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   119
+# Authentication configuration
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   120
+# 
5819
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   121
+
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   122
+# Host private key files
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   123
+# Must be on a local disk and readable only by the root user (root:sys 600).
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   124
+HostKey /etc/ssh/ssh_host_rsa_key
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   125
+HostKey /etc/ssh/ssh_host_dsa_key
5819
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   126
+
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   127
+# sshd regenerates the key every KeyRegenerationInterval seconds.
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   128
+# The key is never stored anywhere except the memory of sshd.
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   129
+# The default is 1 hour (3600 seconds).
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   130
+#KeyRegenerationInterval 3600
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   131
 
5819
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   132
-# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   133
-# but this is overridden so installations will only check .ssh/authorized_keys
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   134
-AuthorizedKeysFile	.ssh/authorized_keys
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   135
-
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   136
-#AuthorizedPrincipalsFile none
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   137
-
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   138
-#AuthorizedKeysCommand none
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   139
-#AuthorizedKeysCommandUser nobody
5819
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   140
-
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   141
-# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   142
-#RhostsRSAAuthentication no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   143
-# similar for protocol version 2
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   144
-#HostbasedAuthentication no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   145
-# Change to yes if you don't trust ~/.ssh/known_hosts for
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   146
-# RhostsRSAAuthentication and HostbasedAuthentication
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   147
-#IgnoreUserKnownHosts no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   148
-# Don't read the user's ~/.rhosts and ~/.shosts files
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   149
-#IgnoreRhosts yes
5819
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   150
+# Ensure secure permissions on users .ssh directory.
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   151
+#StrictModes yes
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   152
 
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   153
-# To disable tunneled clear text passwords, change to no here!
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   154
-#PasswordAuthentication yes
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   155
+# Length of time in seconds before a client that hasn't completed
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   156
+# authentication is disconnected.
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   157
+# Default is 120 seconds. 0 means no time limit.
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   158
+#LoginGraceTime 120
5819
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   159
+
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   160
+# Maximum number of retries for authentication
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   161
+# Default is 6.
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   162
+#MaxAuthTries	6
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   163
+
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   164
+# Are logins to accounts with empty passwords allowed.
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   165
+# If PermitEmptyPasswords is no, pass PAM_DISALLOW_NULL_AUTHTOK 
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   166
+# to pam_authenticate(3PAM).
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   167
 #PermitEmptyPasswords no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   168
 
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   169
-# Change to no to disable s/key passwords
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   170
-#ChallengeResponseAuthentication yes
5819
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   171
-
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   172
-# Kerberos options
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   173
-#KerberosAuthentication no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   174
-#KerberosOrLocalPasswd yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   175
-#KerberosTicketCleanup yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   176
-#KerberosGetAFSToken no
5819
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   177
-
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   178
-# GSSAPI options
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   179
-#GSSAPIAuthentication no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   180
-#GSSAPICleanupCredentials yes
5819
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   181
-
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   182
-# Set this to 'yes' to enable PAM authentication, account processing,
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   183
-# and session processing. If this is enabled, PAM authentication will
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   184
-# be allowed through the ChallengeResponseAuthentication and
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   185
-# PasswordAuthentication.  Depending on your PAM configuration,
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   186
-# PAM authentication via ChallengeResponseAuthentication may bypass
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   187
-# the setting of "PermitRootLogin without-password".
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   188
-# If you just want the PAM account and session checks to run without
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   189
-# PAM authentication, then enable this but set PasswordAuthentication
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   190
-# and ChallengeResponseAuthentication to 'no'.
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   191
-#UsePAM no
5819
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   192
+# To disable tunneled clear text passwords, change PasswordAuthentication to no.
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   193
+#PasswordAuthentication yes
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   194
 
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   195
-#AllowAgentForwarding yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   196
-#AllowTcpForwarding yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   197
-#GatewayPorts no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   198
-#X11Forwarding no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   199
-#X11DisplayOffset 10
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   200
-#X11UseLocalhost yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   201
-#PermitTTY yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   202
-#PrintMotd yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   203
-#PrintLastLog yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   204
-#TCPKeepAlive yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   205
-#UseLogin no
5819
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   206
-#UsePrivilegeSeparation sandbox
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   207
-#PermitUserEnvironment no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   208
-#Compression delayed
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   209
-#ClientAliveInterval 0
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   210
-#ClientAliveCountMax 3
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   211
-#UseDNS no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   212
-#PidFile /var/run/sshd.pid
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   213
-#MaxStartups 10:30:100
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   214
-#PermitTunnel no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   215
-#ChrootDirectory none
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   216
-#VersionAddendum none
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   217
-
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   218
-# no default banner path
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   219
-#Banner none
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   220
-
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   221
-# override default of no subsystems
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   222
-Subsystem	sftp	/usr/libexec/sftp-server
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   223
-
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   224
-# Example of overriding settings on a per-user basis
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   225
-#Match User anoncvs
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   226
-#	X11Forwarding no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   227
-#	AllowTcpForwarding no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   228
-#	PermitTTY no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   229
-#	ForceCommand cvs server
5819
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   230
+# Are root logins permitted using sshd.
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   231
+# Note that sshd uses pam_authenticate(3PAM) so the root (or any other) user
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   232
+# maybe denied access by a PAM module regardless of this setting.
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   233
+# Valid options are yes, without-password, no.
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   234
+PermitRootLogin no
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   235
+
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   236
+# sftp subsystem
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   237
+Subsystem	sftp	internal-sftp
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   238
+
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   239
+# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication.
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   240
+#IgnoreUserKnownHosts yes
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   241
+
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   242
+# Accept the LANG and LC_* environment variables sent by the client.
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   243
+AcceptEnv LANG
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   244
+AcceptEnv LC_*