components/openssh/patches/040-default_config_files.patch
author David Hollister <david.hollister@oracle.com>
Wed, 12 Oct 2016 14:01:13 -0600
changeset 7094 61352b4e5af5
parent 6930 31ef2580c45d
child 7649 69d7508f0d66
permissions -rw-r--r--
24797203 OpenStack RBAC profiles allow reading too many files 24797238 keystone RBAC and SMF should point at Apache log files 24797256 cinder RBAC and SMF should point at Apache log files 24830959 horizon RBAC and SMF should point at Apache log files
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
6930
31ef2580c45d 24525860 upgrade OpenSSH to 7.3p1
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5820
diff changeset
    33
@@ -1,132 +1,96 @@
31ef2580c45d 24525860 upgrade OpenSSH to 7.3p1
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5820
diff changeset
    34
-#	$OpenBSD: sshd_config,v 1.99 2016/07/11 03:19:44 tedu Exp $
31ef2580c45d 24525860 upgrade OpenSSH to 7.3p1
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5820
diff changeset
    35
+#       $OpenBSD: sshd_config,v 1.99 2016/07/11 03:19:44 tedu 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
-#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
    83
-#LogLevel INFO
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    84
+# X11 tunneling options
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    85
+#X11DisplayOffset 10
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    86
+#X11UseLocalhost yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    87
+X11Forwarding yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    88
 
5819
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
    89
-# Authentication:
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    90
+# 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
    91
+# 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
    92
+#MaxStartups 10:30:100
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    93
 
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    94
-#LoginGraceTime 2m
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    95
-#PermitRootLogin prohibit-password
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    96
-#StrictModes yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    97
-#MaxAuthTries 6
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    98
-#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
    99
+# 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
   100
+Banner /etc/issue
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   101
 
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   102
-#RSAAuthentication yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   103
-#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
   104
+# 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
   105
+# 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
   106
+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
   107
+
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   108
+# 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
   109
+# 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
   110
+# 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
   111
+#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
   112
+
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   113
+# 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
   114
+#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
   115
+#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
   116
+
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   117
+#
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   118
+# Authentication configuration
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   119
+# 
5819
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   120
+
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   121
+# Host private key files
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   122
+# 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
   123
+HostKey /etc/ssh/ssh_host_rsa_key
5820
cef0da89f9ee PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5819
diff changeset
   124
+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
   125
+
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   126
+# 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
   127
+# 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
   128
+# 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
   129
+#KeyRegenerationInterval 3600
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   130
 
5819
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   131
-# 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
   132
-# 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
   133
-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
   134
-
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   135
-#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
   136
-
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   137
-#AuthorizedKeysCommand none
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   138
-#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
   139
-
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   140
-# 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
   141
-#RhostsRSAAuthentication no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   142
-# similar for protocol version 2
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   143
-#HostbasedAuthentication no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   144
-# 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
   145
-# RhostsRSAAuthentication and HostbasedAuthentication
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   146
-#IgnoreUserKnownHosts no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   147
-# 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
   148
-#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
   149
+# 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
   150
+#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
   151
 
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   152
-# 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
   153
-#PasswordAuthentication yes
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   154
+# 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
   155
+# authentication is disconnected.
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   156
+# 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
   157
+#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
   158
+
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   159
+# Maximum number of retries for authentication
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   160
+# Default is 6.
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   161
+#MaxAuthTries	6
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   162
+
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   163
+# 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
   164
+# 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
   165
+# to pam_authenticate(3PAM).
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   166
 #PermitEmptyPasswords no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   167
 
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   168
-# 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
   169
-#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
   170
-
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   171
-# Kerberos options
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   172
-#KerberosAuthentication no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   173
-#KerberosOrLocalPasswd yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   174
-#KerberosTicketCleanup yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   175
-#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
   176
-
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   177
-# GSSAPI options
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   178
-#GSSAPIAuthentication no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   179
-#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
   180
-
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   181
-# 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
   182
-# 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
   183
-# be allowed through the ChallengeResponseAuthentication and
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   184
-# PasswordAuthentication.  Depending on your PAM configuration,
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   185
-# PAM authentication via ChallengeResponseAuthentication may bypass
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   186
-# the setting of "PermitRootLogin without-password".
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   187
-# 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
   188
-# 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
   189
-# and ChallengeResponseAuthentication to 'no'.
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   190
-#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
   191
+# 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
   192
+#PasswordAuthentication yes
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   193
 
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   194
-#AllowAgentForwarding yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   195
-#AllowTcpForwarding yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   196
-#GatewayPorts no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   197
-#X11Forwarding no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   198
-#X11DisplayOffset 10
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   199
-#X11UseLocalhost yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   200
-#PermitTTY yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   201
-#PrintMotd yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   202
-#PrintLastLog yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   203
-#TCPKeepAlive yes
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   204
-#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
   205
-#UsePrivilegeSeparation sandbox
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   206
-#PermitUserEnvironment no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   207
-#Compression delayed
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   208
-#ClientAliveInterval 0
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   209
-#ClientAliveCountMax 3
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   210
-#UseDNS no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   211
-#PidFile /var/run/sshd.pid
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   212
-#MaxStartups 10:30:100
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   213
-#PermitTunnel no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   214
-#ChrootDirectory none
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   215
-#VersionAddendum none
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   216
-
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   217
-# no default banner path
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   218
-#Banner none
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   219
-
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   220
-# override default of no subsystems
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   221
-Subsystem	sftp	/usr/libexec/sftp-server
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   222
-
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   223
-# 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
   224
-#Match User anoncvs
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   225
-#	X11Forwarding no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   226
-#	AllowTcpForwarding no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   227
-#	PermitTTY no
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   228
-#	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
   229
+# 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
   230
+# 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
   231
+# 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
   232
+# 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
   233
+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
   234
+
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   235
+# 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
   236
+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
   237
+
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5544
diff changeset
   238
+# 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
   239
+#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
   240
+
5544
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   241
+# 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
   242
+AcceptEnv LANG
16204c8a93ff PSARC 2015/227 SunSSH EOF and Removal
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
   243
+AcceptEnv LC_*