vishalmishra434 / rpms / openssh

Forked from rpms/openssh a month ago
Clone
Petr Lautrbach 470ebd
diff -up openssh-6.1p1/ssh_config.redhat openssh-6.1p1/ssh_config
Petr Lautrbach 470ebd
--- openssh-6.1p1/ssh_config.redhat	2010-01-12 09:40:27.000000000 +0100
Petr Lautrbach 470ebd
+++ openssh-6.1p1/ssh_config	2012-10-26 16:28:51.820340584 +0200
Jan F. Chadima 69dd72
@@ -45,3 +45,14 @@
Jan F. Chadima 69dd72
 #   PermitLocalCommand no
Jan F. Chadima 69dd72
 #   VisualHostKey no
Jan F. Chadima 69dd72
 #   ProxyCommand ssh -q -W %h:%p gateway.example.com
Jan F. Chadima 69dd72
+Host *
Jan F. Chadima 69dd72
+	GSSAPIAuthentication yes
Jan F. Chadima 69dd72
+# If this option is set to yes then remote X11 clients will have full access
Jan F. Chadima 69dd72
+# to the original X11 display. As virtually no X11 client supports the untrusted
Jan F. Chadima 69dd72
+# mode correctly we set this to yes.
Jan F. Chadima 69dd72
+	ForwardX11Trusted yes
Jan F. Chadima 69dd72
+# Send locale-related environment variables
Jan F. Chadima 69dd72
+	SendEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES 
Jan F. Chadima 69dd72
+	SendEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT 
Jan F. Chadima 69dd72
+	SendEnv LC_IDENTIFICATION LC_ALL LANGUAGE
Jan F. Chadima 69dd72
+	SendEnv XMODIFIERS
Petr Lautrbach 470ebd
diff -up openssh-6.1p1/sshd_config.0.redhat openssh-6.1p1/sshd_config.0
Petr Lautrbach 470ebd
--- openssh-6.1p1/sshd_config.0.redhat	2012-10-26 16:28:51.762340584 +0200
Petr Lautrbach 470ebd
+++ openssh-6.1p1/sshd_config.0	2012-10-26 16:28:51.821340584 +0200
Petr Lautrbach 470ebd
@@ -583,9 +583,9 @@ DESCRIPTION
Petr Lautrbach 470ebd
 
Petr Lautrbach 470ebd
      SyslogFacility
Petr Lautrbach 470ebd
              Gives the facility code that is used when logging messages from
Petr Lautrbach 470ebd
-             sshd(8).  The possible values are: DAEMON, USER, AUTH, LOCAL0,
Petr Lautrbach 470ebd
-             LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7.  The
Petr Lautrbach 470ebd
-             default is AUTH.
Petr Lautrbach 470ebd
+             sshd(8).  The possible values are: DAEMON, USER, AUTH, AUTHPRIV,
Petr Lautrbach 470ebd
+             LOCAL0, LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7.
Petr Lautrbach 470ebd
+             The default is AUTH.
Petr Lautrbach 470ebd
 
Petr Lautrbach 470ebd
      TCPKeepAlive
Petr Lautrbach 470ebd
              Specifies whether the system should send TCP keepalive messages
Petr Lautrbach 470ebd
diff -up openssh-6.1p1/sshd_config.5.redhat openssh-6.1p1/sshd_config.5
Petr Lautrbach 470ebd
--- openssh-6.1p1/sshd_config.5.redhat	2012-10-26 16:28:51.763340584 +0200
Petr Lautrbach 470ebd
+++ openssh-6.1p1/sshd_config.5	2012-10-26 16:28:51.822340584 +0200
Petr Lautrbach 470ebd
@@ -1015,7 +1015,7 @@ Note that this option applies to protoco
Petr Lautrbach 470ebd
 .It Cm SyslogFacility
Petr Lautrbach 470ebd
 Gives the facility code that is used when logging messages from
Petr Lautrbach 470ebd
 .Xr sshd 8 .
Petr Lautrbach 470ebd
-The possible values are: DAEMON, USER, AUTH, LOCAL0, LOCAL1, LOCAL2,
Petr Lautrbach 470ebd
+The possible values are: DAEMON, USER, AUTH, AUTHPRIV, LOCAL0, LOCAL1, LOCAL2,
Petr Lautrbach 470ebd
 LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7.
Petr Lautrbach 470ebd
 The default is AUTH.
Petr Lautrbach 470ebd
 .It Cm TCPKeepAlive
Petr Lautrbach 470ebd
diff -up openssh-6.1p1/sshd_config.redhat openssh-6.1p1/sshd_config
Petr Lautrbach 470ebd
--- openssh-6.1p1/sshd_config.redhat	2012-10-26 16:28:51.819340584 +0200
Petr Lautrbach 470ebd
+++ openssh-6.1p1/sshd_config	2012-10-26 16:31:44.773340564 +0200
Petr Lautrbach 470ebd
@@ -10,6 +10,10 @@
Petr Lautrbach 470ebd
 # possible, but leave them commented.  Uncommented options override the
Petr Lautrbach 470ebd
 # default value.
Petr Lautrbach 470ebd
 
Petr Lautrbach 470ebd
+# If you want to change the port on a SELinux system, you have to tell
Petr Lautrbach 470ebd
+# SELinux about this change.
Petr Lautrbach 470ebd
+# semanage port -a -t ssh_port_t -p tcp #PORTNUMBER
Petr Lautrbach 470ebd
+#
Petr Lautrbach 470ebd
 #Port 22
Petr Lautrbach 470ebd
 #AddressFamily any
Petr Lautrbach 470ebd
 #ListenAddress 0.0.0.0
Petr Lautrbach 470ebd
@@ -32,6 +36,7 @@
Jan F. Chadima 69dd72
 # Logging
Jan F. Chadima 69dd72
 # obsoletes QuietMode and FascistLogging
Jan F. Chadima 69dd72
 #SyslogFacility AUTH
Jan F. Chadima 69dd72
+SyslogFacility AUTHPRIV
Jan F. Chadima 69dd72
 #LogLevel INFO
Jan F. Chadima 69dd72
 
Jan F. Chadima 69dd72
 # Authentication:
Petr Lautrbach 470ebd
@@ -67,9 +72,11 @@ AuthorizedKeysFile	.ssh/authorized_keys
Jan F. Chadima 69dd72
 # To disable tunneled clear text passwords, change to no here!
Jan F. Chadima 69dd72
 #PasswordAuthentication yes
Jan F. Chadima 69dd72
 #PermitEmptyPasswords no
Jan F. Chadima 69dd72
+PasswordAuthentication yes
Jan F. Chadima 69dd72
 
Jan F. Chadima 69dd72
 # Change to no to disable s/key passwords
Jan F. Chadima 69dd72
 #ChallengeResponseAuthentication yes
Jan F. Chadima 69dd72
+ChallengeResponseAuthentication no
Jan F. Chadima 69dd72
 
Jan F. Chadima 69dd72
 # Kerberos options
Jan F. Chadima 69dd72
 #KerberosAuthentication no
Petr Lautrbach 470ebd
@@ -79,7 +86,9 @@ AuthorizedKeysFile	.ssh/authorized_keys
Jan F. Chadima 69dd72
 
Jan F. Chadima 69dd72
 # GSSAPI options
Jan F. Chadima 69dd72
 #GSSAPIAuthentication no
Jan F. Chadima 69dd72
+GSSAPIAuthentication yes
Jan F. Chadima 69dd72
 #GSSAPICleanupCredentials yes
Jan F. Chadima 69dd72
+GSSAPICleanupCredentials yes
Jan F. Chadima 69dd72
 
Jan F. Chadima 69dd72
 # Set this to 'yes' to enable PAM authentication, account processing, 
Jan F. Chadima 69dd72
 # and session processing. If this is enabled, PAM authentication will 
Petr Lautrbach 470ebd
@@ -91,11 +100,13 @@ AuthorizedKeysFile	.ssh/authorized_keys
Jan F. Chadima 69dd72
 # PAM authentication, then enable this but set PasswordAuthentication
Jan F. Chadima 69dd72
 # and ChallengeResponseAuthentication to 'no'.
Jan F. Chadima 69dd72
 #UsePAM no
Jan F. Chadima 69dd72
+UsePAM yes
Jan F. Chadima 69dd72
 
Petr Lautrbach d9e618
 #AllowAgentForwarding yes
Jan F. Chadima 69dd72
 #AllowTcpForwarding yes
Jan F. Chadima 69dd72
 #GatewayPorts no
Jan F. Chadima 69dd72
 #X11Forwarding no
Jan F. Chadima 69dd72
+X11Forwarding yes
Jan F. Chadima 69dd72
 #X11DisplayOffset 10
Jan F. Chadima 69dd72
 #X11UseLocalhost yes
Jan F. Chadima 69dd72
 #PrintMotd yes
Petr Lautrbach 470ebd
@@ -117,6 +128,12 @@ UsePrivilegeSeparation sandbox		# Defaul
Jan F. Chadima 69dd72
 # no default banner path
Jan F. Chadima 69dd72
 #Banner none
Jan F. Chadima 69dd72
 
Jan F. Chadima 69dd72
+# Accept locale-related environment variables
Jan F. Chadima 69dd72
+AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
Jan F. Chadima 69dd72
+AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
Jan F. Chadima 69dd72
+AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE
Jan F. Chadima 69dd72
+AcceptEnv XMODIFIERS
Jan F. Chadima 69dd72
+
Jan F. Chadima 69dd72
 # override default of no subsystems
Jan F. Chadima 69dd72
 Subsystem	sftp	/usr/libexec/sftp-server
Jan F. Chadima 69dd72