2017-08-09 12:58:13 +00:00
|
|
|
diff -up openssh-7.4p1/ssh_config.redhat openssh-7.4p1/ssh_config
|
|
|
|
--- openssh-7.4p1/ssh_config.redhat 2016-12-19 05:59:41.000000000 +0100
|
|
|
|
+++ openssh-7.4p1/ssh_config 2016-12-23 13:32:00.045220402 +0100
|
2017-01-02 14:42:13 +00:00
|
|
|
@@ -48,3 +48,7 @@
|
2016-06-03 14:22:59 +00:00
|
|
|
# VisualHostKey no
|
|
|
|
# ProxyCommand ssh -q -W %h:%p gateway.example.com
|
|
|
|
# RekeyLimit 1G 1h
|
|
|
|
+#
|
2016-09-29 09:26:06 +00:00
|
|
|
+# To modify the system-wide ssh configuration, create a *.conf file under
|
|
|
|
+# /etc/ssh/ssh_config.d/ which will be automatically included below
|
2016-08-04 08:57:32 +00:00
|
|
|
+Include /etc/ssh/ssh_config.d/*.conf
|
2017-08-09 12:58:13 +00:00
|
|
|
diff -up openssh-7.4p1/ssh_config_redhat.redhat openssh-7.4p1/ssh_config_redhat
|
|
|
|
--- openssh-7.4p1/ssh_config_redhat.redhat 2016-12-23 13:32:00.045220402 +0100
|
|
|
|
+++ openssh-7.4p1/ssh_config_redhat 2016-12-23 13:32:00.045220402 +0100
|
2016-09-29 09:26:06 +00:00
|
|
|
@@ -0,0 +1,20 @@
|
2017-02-21 18:25:41 +00:00
|
|
|
+# Follow system-wide Crypto Policy, if defined:
|
2017-01-06 12:00:16 +00:00
|
|
|
+Include /etc/crypto-policies/back-ends/openssh.config
|
2016-09-29 09:26:06 +00:00
|
|
|
+
|
2016-06-03 14:22:59 +00:00
|
|
|
+# Uncomment this if you want to use .local domain
|
|
|
|
+# Host *.local
|
|
|
|
+# CheckHostIP no
|
2014-12-03 17:08:20 +00:00
|
|
|
+
|
2011-09-07 13:12:54 +00:00
|
|
|
+Host *
|
|
|
|
+ GSSAPIAuthentication yes
|
2016-08-04 08:57:32 +00:00
|
|
|
+
|
2011-09-07 13:12:54 +00:00
|
|
|
+# If this option is set to yes then remote X11 clients will have full access
|
|
|
|
+# to the original X11 display. As virtually no X11 client supports the untrusted
|
|
|
|
+# mode correctly we set this to yes.
|
|
|
|
+ ForwardX11Trusted yes
|
2016-08-04 08:57:32 +00:00
|
|
|
+
|
2011-09-07 13:12:54 +00:00
|
|
|
+# Send locale-related environment variables
|
2013-10-14 13:54:41 +00:00
|
|
|
+ SendEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
|
|
|
|
+ SendEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
|
2011-09-07 13:12:54 +00:00
|
|
|
+ SendEnv LC_IDENTIFICATION LC_ALL LANGUAGE
|
|
|
|
+ SendEnv XMODIFIERS
|
2017-08-09 12:58:13 +00:00
|
|
|
diff -up openssh-7.4p1/sshd_config.0.redhat openssh-7.4p1/sshd_config.0
|
|
|
|
--- openssh-7.4p1/sshd_config.0.redhat 2016-12-19 06:21:22.000000000 +0100
|
|
|
|
+++ openssh-7.4p1/sshd_config.0 2016-12-23 13:32:00.045220402 +0100
|
|
|
|
@@ -837,9 +837,9 @@ DESCRIPTION
|
2017-01-02 14:42:13 +00:00
|
|
|
|
|
|
|
SyslogFacility
|
|
|
|
Gives the facility code that is used when logging messages from
|
|
|
|
- sshd(8). The possible values are: DAEMON, USER, AUTH, LOCAL0,
|
|
|
|
- LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. The
|
|
|
|
- default is AUTH.
|
|
|
|
+ sshd(8). The possible values are: DAEMON, USER, AUTH, AUTHPRIV,
|
|
|
|
+ LOCAL0, LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7.
|
|
|
|
+ The default is AUTH.
|
|
|
|
|
|
|
|
TCPKeepAlive
|
|
|
|
Specifies whether the system should send TCP keepalive messages
|
2017-08-09 12:58:13 +00:00
|
|
|
diff -up openssh-7.4p1/sshd_config.5.redhat openssh-7.4p1/sshd_config.5
|
|
|
|
--- openssh-7.4p1/sshd_config.5.redhat 2016-12-19 05:59:41.000000000 +0100
|
|
|
|
+++ openssh-7.4p1/sshd_config.5 2016-12-23 13:32:00.046220403 +0100
|
|
|
|
@@ -1393,7 +1393,7 @@ By default no subsystems are defined.
|
2017-01-02 14:42:13 +00:00
|
|
|
.It Cm SyslogFacility
|
|
|
|
Gives the facility code that is used when logging messages from
|
|
|
|
.Xr sshd 8 .
|
|
|
|
-The possible values are: DAEMON, USER, AUTH, LOCAL0, LOCAL1, LOCAL2,
|
|
|
|
+The possible values are: DAEMON, USER, AUTH, AUTHPRIV, LOCAL0, LOCAL1, LOCAL2,
|
|
|
|
LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7.
|
|
|
|
The default is AUTH.
|
|
|
|
.It Cm TCPKeepAlive
|
2017-08-09 12:58:13 +00:00
|
|
|
diff -up openssh-7.4p1/sshd_config.redhat openssh-7.4p1/sshd_config
|
|
|
|
--- openssh-7.4p1/sshd_config.redhat 2016-12-19 05:59:41.000000000 +0100
|
|
|
|
+++ openssh-7.4p1/sshd_config 2016-12-23 13:33:05.386233133 +0100
|
2018-03-27 14:52:07 +00:00
|
|
|
@@ -10,20 +10,34 @@
|
2012-10-26 14:34:55 +00:00
|
|
|
# possible, but leave them commented. Uncommented options override the
|
|
|
|
# default value.
|
|
|
|
|
|
|
|
+# If you want to change the port on a SELinux system, you have to tell
|
|
|
|
+# SELinux about this change.
|
|
|
|
+# semanage port -a -t ssh_port_t -p tcp #PORTNUMBER
|
|
|
|
+#
|
|
|
|
#Port 22
|
|
|
|
#AddressFamily any
|
|
|
|
#ListenAddress 0.0.0.0
|
2017-01-02 14:42:13 +00:00
|
|
|
#ListenAddress ::
|
|
|
|
|
2013-12-09 16:30:18 +00:00
|
|
|
-#HostKey /etc/ssh/ssh_host_rsa_key
|
|
|
|
+HostKey /etc/ssh/ssh_host_rsa_key
|
|
|
|
-#HostKey /etc/ssh/ssh_host_ecdsa_key
|
2014-06-03 14:51:07 +00:00
|
|
|
-#HostKey /etc/ssh/ssh_host_ed25519_key
|
2013-12-09 16:30:18 +00:00
|
|
|
+HostKey /etc/ssh/ssh_host_ecdsa_key
|
2014-06-03 14:51:07 +00:00
|
|
|
+HostKey /etc/ssh/ssh_host_ed25519_key
|
2013-12-09 16:30:18 +00:00
|
|
|
|
2017-01-02 14:42:13 +00:00
|
|
|
# Ciphers and keying
|
|
|
|
#RekeyLimit default none
|
2016-07-25 14:21:15 +00:00
|
|
|
|
2017-08-09 13:14:13 +00:00
|
|
|
+# System-wide Crypto policy:
|
|
|
|
+# If this system is following system-wide crypto policy, the changes to
|
|
|
|
+# Ciphers, MACs, KexAlgoritms and GSSAPIKexAlgorithsm will not have any
|
|
|
|
+# effect here. They will be overridden by command-line options passed on
|
|
|
|
+# the server start up.
|
|
|
|
+# To opt out, uncomment a line with redefinition of CRYPTO_POLICY=
|
|
|
|
+# variable in /etc/sysconfig/sshd to overwrite the policy.
|
|
|
|
+# For more information, see manual page for update-crypto-policies(8).
|
|
|
|
+
|
2011-09-07 13:12:54 +00:00
|
|
|
# Logging
|
|
|
|
#SyslogFacility AUTH
|
|
|
|
+SyslogFacility AUTHPRIV
|
|
|
|
#LogLevel INFO
|
|
|
|
|
|
|
|
# Authentication:
|
2017-08-09 12:58:13 +00:00
|
|
|
@@ -57,9 +62,11 @@ AuthorizedKeysFile .ssh/authorized_keys
|
2011-09-07 13:12:54 +00:00
|
|
|
# To disable tunneled clear text passwords, change to no here!
|
|
|
|
#PasswordAuthentication yes
|
|
|
|
#PermitEmptyPasswords no
|
|
|
|
+PasswordAuthentication yes
|
|
|
|
|
|
|
|
# Change to no to disable s/key passwords
|
|
|
|
#ChallengeResponseAuthentication yes
|
|
|
|
+ChallengeResponseAuthentication no
|
|
|
|
|
|
|
|
# Kerberos options
|
|
|
|
#KerberosAuthentication no
|
2017-08-09 12:58:13 +00:00
|
|
|
@@ -68,8 +75,8 @@ AuthorizedKeysFile .ssh/authorized_keys
|
2014-06-03 14:51:07 +00:00
|
|
|
#KerberosGetAFSToken no
|
2011-09-07 13:12:54 +00:00
|
|
|
|
|
|
|
# GSSAPI options
|
2014-06-03 14:51:07 +00:00
|
|
|
-#GSSAPIAuthentication no
|
|
|
|
-#GSSAPICleanupCredentials yes
|
2011-09-07 13:12:54 +00:00
|
|
|
+GSSAPIAuthentication yes
|
2014-02-26 16:08:07 +00:00
|
|
|
+GSSAPICleanupCredentials no
|
2011-09-07 13:12:54 +00:00
|
|
|
|
2014-06-03 14:51:07 +00:00
|
|
|
# Set this to 'yes' to enable PAM authentication, account processing,
|
|
|
|
# and session processing. If this is enabled, PAM authentication will
|
2017-08-09 12:58:13 +00:00
|
|
|
@@ -80,12 +87,12 @@ AuthorizedKeysFile .ssh/authorized_keys
|
2014-06-03 14:51:07 +00:00
|
|
|
# If you just want the PAM account and session checks to run without
|
2011-09-07 13:12:54 +00:00
|
|
|
# PAM authentication, then enable this but set PasswordAuthentication
|
|
|
|
# and ChallengeResponseAuthentication to 'no'.
|
2014-06-03 14:51:07 +00:00
|
|
|
-#UsePAM no
|
2011-09-07 13:12:54 +00:00
|
|
|
+UsePAM yes
|
|
|
|
|
2012-02-06 21:15:10 +00:00
|
|
|
#AllowAgentForwarding yes
|
2011-09-07 13:12:54 +00:00
|
|
|
#AllowTcpForwarding yes
|
|
|
|
#GatewayPorts no
|
2014-06-03 14:51:07 +00:00
|
|
|
-#X11Forwarding no
|
2011-09-07 13:12:54 +00:00
|
|
|
+X11Forwarding yes
|
|
|
|
#X11DisplayOffset 10
|
|
|
|
#X11UseLocalhost yes
|
2014-06-03 14:51:07 +00:00
|
|
|
#PermitTTY yes
|
2017-08-09 12:58:13 +00:00
|
|
|
@@ -108,6 +115,12 @@ AuthorizedKeysFile .ssh/authorized_keys
|
2011-09-07 13:12:54 +00:00
|
|
|
# no default banner path
|
|
|
|
#Banner none
|
|
|
|
|
|
|
|
+# Accept locale-related environment variables
|
|
|
|
+AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
|
|
|
|
+AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
|
|
|
|
+AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE
|
|
|
|
+AcceptEnv XMODIFIERS
|
|
|
|
+
|
|
|
|
# override default of no subsystems
|
|
|
|
Subsystem sftp /usr/libexec/sftp-server
|
|
|
|
|