vishalmishra434 / rpms / openssh

Forked from rpms/openssh a month ago
Clone
8f2528
diff -up openssh-7.4p1/ssh_config.redhat openssh-7.4p1/ssh_config
8f2528
--- openssh-7.4p1/ssh_config.redhat	2017-02-08 15:22:30.811307915 +0100
8f2528
+++ openssh-7.4p1/ssh_config	2017-02-08 15:22:30.812307915 +0100
8f2528
@@ -52,3 +52,15 @@
8f2528
 # Uncomment this if you want to use .local domain
8f2528
 # Host *.local
8f2528
 #   CheckHostIP no
8f2528
+
8f2528
+Host *
8f2528
+	GSSAPIAuthentication yes
8f2528
+# If this option is set to yes then remote X11 clients will have full access
8f2528
+# to the original X11 display. As virtually no X11 client supports the untrusted
8f2528
+# mode correctly we set this to yes.
8f2528
+	ForwardX11Trusted yes
8f2528
+# Send locale-related environment variables
8f2528
+	SendEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
8f2528
+	SendEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
8f2528
+	SendEnv LC_IDENTIFICATION LC_ALL LANGUAGE
8f2528
+	SendEnv XMODIFIERS
8f2528
diff -up openssh-7.4p1/sshd_config.0.redhat openssh-7.4p1/sshd_config.0
8f2528
--- openssh-7.4p1/sshd_config.0.redhat	2016-12-19 06:21:22.000000000 +0100
8f2528
+++ openssh-7.4p1/sshd_config.0	2017-02-08 15:22:30.813307914 +0100
8f2528
@@ -837,9 +837,9 @@ DESCRIPTION
8f2528
 
8f2528
      SyslogFacility
8f2528
              Gives the facility code that is used when logging messages from
8f2528
-             sshd(8).  The possible values are: DAEMON, USER, AUTH, LOCAL0,
8f2528
-             LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7.  The
8f2528
-             default is AUTH.
8f2528
+             sshd(8).  The possible values are: DAEMON, USER, AUTH, AUTHPRIV,
8f2528
+             LOCAL0, LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7.
8f2528
+             The default is AUTH.
8f2528
 
8f2528
      TCPKeepAlive
8f2528
              Specifies whether the system should send TCP keepalive messages
8f2528
diff -up openssh-7.4p1/sshd_config.5.redhat openssh-7.4p1/sshd_config.5
8f2528
--- openssh-7.4p1/sshd_config.5.redhat	2016-12-19 05:59:41.000000000 +0100
8f2528
+++ openssh-7.4p1/sshd_config.5	2017-02-08 15:22:30.813307914 +0100
8f2528
@@ -1393,7 +1393,7 @@ By default no subsystems are defined.
8f2528
 .It Cm SyslogFacility
8f2528
 Gives the facility code that is used when logging messages from
8f2528
 .Xr sshd 8 .
8f2528
-The possible values are: DAEMON, USER, AUTH, LOCAL0, LOCAL1, LOCAL2,
8f2528
+The possible values are: DAEMON, USER, AUTH, AUTHPRIV, LOCAL0, LOCAL1, LOCAL2,
8f2528
 LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7.
8f2528
 The default is AUTH.
8f2528
 .It Cm TCPKeepAlive
8f2528
diff -up openssh-7.4p1/sshd_config.redhat openssh-7.4p1/sshd_config
8f2528
--- openssh-7.4p1/sshd_config.redhat	2016-12-19 05:59:41.000000000 +0100
8f2528
+++ openssh-7.4p1/sshd_config	2017-02-08 15:33:24.705736576 +0100
8f2528
@@ -10,21 +10,26 @@
8f2528
 # possible, but leave them commented.  Uncommented options override the
8f2528
 # default value.
8f2528
 
8f2528
+# If you want to change the port on a SELinux system, you have to tell
8f2528
+# SELinux about this change.
8f2528
+# semanage port -a -t ssh_port_t -p tcp #PORTNUMBER
8f2528
+#
8f2528
 #Port 22
8f2528
 #AddressFamily any
8f2528
 #ListenAddress 0.0.0.0
8f2528
 #ListenAddress ::
8f2528
 
8f2528
-#HostKey /etc/ssh/ssh_host_rsa_key
8f2528
+HostKey /etc/ssh/ssh_host_rsa_key
8f2528
 #HostKey /etc/ssh/ssh_host_dsa_key
8f2528
-#HostKey /etc/ssh/ssh_host_ecdsa_key
8f2528
-#HostKey /etc/ssh/ssh_host_ed25519_key
8f2528
+HostKey /etc/ssh/ssh_host_ecdsa_key
8f2528
+HostKey /etc/ssh/ssh_host_ed25519_key
8f2528
 
8f2528
 # Ciphers and keying
8f2528
 #RekeyLimit default none
8f2528
 
8f2528
 # Logging
8f2528
 #SyslogFacility AUTH
8f2528
+SyslogFacility AUTHPRIV
8f2528
 #LogLevel INFO
8f2528
 
8f2528
 # Authentication:
8f2528
@@ -57,9 +62,11 @@ AuthorizedKeysFile	.ssh/authorized_keys
8f2528
 # To disable tunneled clear text passwords, change to no here!
8f2528
 #PasswordAuthentication yes
8f2528
 #PermitEmptyPasswords no
8f2528
+PasswordAuthentication yes
8f2528
 
8f2528
 # Change to no to disable s/key passwords
8f2528
 #ChallengeResponseAuthentication yes
8f2528
+ChallengeResponseAuthentication no
8f2528
 
8f2528
 # Kerberos options
8f2528
 #KerberosAuthentication no
8f2528
@@ -68,8 +75,8 @@ AuthorizedKeysFile	.ssh/authorized_keys
8f2528
 #KerberosGetAFSToken no
8f2528
 
8f2528
 # GSSAPI options
8f2528
-#GSSAPIAuthentication no
8f2528
-#GSSAPICleanupCredentials yes
8f2528
+GSSAPIAuthentication yes
8f2528
+GSSAPICleanupCredentials no
8f2528
 
8f2528
 # Set this to 'yes' to enable PAM authentication, account processing,
8f2528
 # and session processing. If this is enabled, PAM authentication will
8f2528
@@ -80,12 +87,12 @@ AuthorizedKeysFile	.ssh/authorized_keys
8f2528
 # If you just want the PAM account and session checks to run without
8f2528
 # PAM authentication, then enable this but set PasswordAuthentication
8f2528
 # and ChallengeResponseAuthentication to 'no'.
8f2528
-#UsePAM no
8f2528
+UsePAM yes
8f2528
 
8f2528
 #AllowAgentForwarding yes
8f2528
 #AllowTcpForwarding yes
8f2528
 #GatewayPorts no
8f2528
-#X11Forwarding no
8f2528
+X11Forwarding yes
8f2528
 #X11DisplayOffset 10
8f2528
 #X11UseLocalhost yes
8f2528
 #PermitTTY yes
8f2528
@@ -108,6 +115,12 @@ AuthorizedKeysFile	.ssh/authorized_keys
8f2528
 # no default banner path
8f2528
 #Banner none
8f2528
 
8f2528
+# Accept locale-related environment variables
8f2528
+AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
8f2528
+AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
8f2528
+AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE
8f2528
+AcceptEnv XMODIFIERS
8f2528
+
8f2528
 # override default of no subsystems
8f2528
 Subsystem	sftp	/usr/libexec/sftp-server
8f2528