|
Jakub Jelen |
6a0593 |
diff -up openssh-7.4p1/ssh_config.redhat openssh-7.4p1/ssh_config
|
|
Jakub Jelen |
6a0593 |
--- openssh-7.4p1/ssh_config.redhat 2016-12-19 05:59:41.000000000 +0100
|
|
Jakub Jelen |
6a0593 |
+++ openssh-7.4p1/ssh_config 2016-12-23 13:32:00.045220402 +0100
|
|
Jakub Jelen |
6cf9b8 |
@@ -48,3 +48,7 @@
|
|
Jakub Jelen |
1144ae |
# VisualHostKey no
|
|
Jakub Jelen |
1144ae |
# ProxyCommand ssh -q -W %h:%p gateway.example.com
|
|
Jakub Jelen |
1144ae |
# RekeyLimit 1G 1h
|
|
Jakub Jelen |
1144ae |
+#
|
|
Jakub Jelen |
639ae2 |
+# To modify the system-wide ssh configuration, create a *.conf file under
|
|
Jakub Jelen |
639ae2 |
+# /etc/ssh/ssh_config.d/ which will be automatically included below
|
|
Jakub Jelen |
645408 |
+Include /etc/ssh/ssh_config.d/*.conf
|
|
Jakub Jelen |
6a0593 |
diff -up openssh-7.4p1/ssh_config_redhat.redhat openssh-7.4p1/ssh_config_redhat
|
|
Jakub Jelen |
6a0593 |
--- openssh-7.4p1/ssh_config_redhat.redhat 2016-12-23 13:32:00.045220402 +0100
|
|
Jakub Jelen |
6a0593 |
+++ openssh-7.4p1/ssh_config_redhat 2016-12-23 13:32:00.045220402 +0100
|
|
Jakub Jelen |
639ae2 |
@@ -0,0 +1,20 @@
|
|
Jakub Jelen |
3448f2 |
+# Follow system-wide Crypto Policy, if defined:
|
|
Jakub Jelen |
28ff3a |
+Include /etc/crypto-policies/back-ends/openssh.config
|
|
Jakub Jelen |
639ae2 |
+
|
|
Jakub Jelen |
1144ae |
+# Uncomment this if you want to use .local domain
|
|
Jakub Jelen |
1144ae |
+# Host *.local
|
|
Jakub Jelen |
1144ae |
+# CheckHostIP no
|
|
Petr Lautrbach |
56a647 |
+
|
|
Jan F. Chadima |
69dd72 |
+Host *
|
|
Jan F. Chadima |
69dd72 |
+ GSSAPIAuthentication yes
|
|
Jakub Jelen |
645408 |
+
|
|
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
|
|
Jakub Jelen |
645408 |
+
|
|
Jan F. Chadima |
69dd72 |
+# Send locale-related environment variables
|
|
Petr Lautrbach |
84822b |
+ SendEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
|
|
Petr Lautrbach |
84822b |
+ 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
|
|
Jakub Jelen |
6a0593 |
diff -up openssh-7.4p1/sshd_config.0.redhat openssh-7.4p1/sshd_config.0
|
|
Jakub Jelen |
6a0593 |
--- openssh-7.4p1/sshd_config.0.redhat 2016-12-19 06:21:22.000000000 +0100
|
|
Jakub Jelen |
6a0593 |
+++ openssh-7.4p1/sshd_config.0 2016-12-23 13:32:00.045220402 +0100
|
|
Jakub Jelen |
6a0593 |
@@ -837,9 +837,9 @@ DESCRIPTION
|
|
Jakub Jelen |
6cf9b8 |
|
|
Jakub Jelen |
6cf9b8 |
SyslogFacility
|
|
Jakub Jelen |
6cf9b8 |
Gives the facility code that is used when logging messages from
|
|
Jakub Jelen |
6cf9b8 |
- sshd(8). The possible values are: DAEMON, USER, AUTH, LOCAL0,
|
|
Jakub Jelen |
6cf9b8 |
- LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. The
|
|
Jakub Jelen |
6cf9b8 |
- default is AUTH.
|
|
Jakub Jelen |
6cf9b8 |
+ sshd(8). The possible values are: DAEMON, USER, AUTH, AUTHPRIV,
|
|
Jakub Jelen |
6cf9b8 |
+ LOCAL0, LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7.
|
|
Jakub Jelen |
6cf9b8 |
+ The default is AUTH.
|
|
Jakub Jelen |
6cf9b8 |
|
|
Jakub Jelen |
6cf9b8 |
TCPKeepAlive
|
|
Jakub Jelen |
6cf9b8 |
Specifies whether the system should send TCP keepalive messages
|
|
Jakub Jelen |
6a0593 |
diff -up openssh-7.4p1/sshd_config.5.redhat openssh-7.4p1/sshd_config.5
|
|
Jakub Jelen |
6a0593 |
--- openssh-7.4p1/sshd_config.5.redhat 2016-12-19 05:59:41.000000000 +0100
|
|
Jakub Jelen |
6a0593 |
+++ openssh-7.4p1/sshd_config.5 2016-12-23 13:32:00.046220403 +0100
|
|
Jakub Jelen |
6a0593 |
@@ -1393,7 +1393,7 @@ By default no subsystems are defined.
|
|
Jakub Jelen |
6cf9b8 |
.It Cm SyslogFacility
|
|
Jakub Jelen |
6cf9b8 |
Gives the facility code that is used when logging messages from
|
|
Jakub Jelen |
6cf9b8 |
.Xr sshd 8 .
|
|
Jakub Jelen |
6cf9b8 |
-The possible values are: DAEMON, USER, AUTH, LOCAL0, LOCAL1, LOCAL2,
|
|
Jakub Jelen |
6cf9b8 |
+The possible values are: DAEMON, USER, AUTH, AUTHPRIV, LOCAL0, LOCAL1, LOCAL2,
|
|
Jakub Jelen |
6cf9b8 |
LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7.
|
|
Jakub Jelen |
6cf9b8 |
The default is AUTH.
|
|
Jakub Jelen |
6cf9b8 |
.It Cm TCPKeepAlive
|
|
Jakub Jelen |
6a0593 |
diff -up openssh-7.4p1/sshd_config.redhat openssh-7.4p1/sshd_config
|
|
Jakub Jelen |
6a0593 |
--- openssh-7.4p1/sshd_config.redhat 2016-12-19 05:59:41.000000000 +0100
|
|
Jakub Jelen |
6a0593 |
+++ openssh-7.4p1/sshd_config 2016-12-23 13:33:05.386233133 +0100
|
|
Jakub Jelen |
0ce6c7 |
@@ -10,21 +10,35 @@
|
|
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
|
|
Jakub Jelen |
6cf9b8 |
#ListenAddress ::
|
|
Jakub Jelen |
6cf9b8 |
|
|
Petr Lautrbach |
2b2955 |
-#HostKey /etc/ssh/ssh_host_rsa_key
|
|
Petr Lautrbach |
2b2955 |
+HostKey /etc/ssh/ssh_host_rsa_key
|
|
Petr Lautrbach |
2b2955 |
#HostKey /etc/ssh/ssh_host_dsa_key
|
|
Petr Lautrbach |
2b2955 |
-#HostKey /etc/ssh/ssh_host_ecdsa_key
|
|
Petr Lautrbach |
94c6f8 |
-#HostKey /etc/ssh/ssh_host_ed25519_key
|
|
Petr Lautrbach |
2b2955 |
+HostKey /etc/ssh/ssh_host_ecdsa_key
|
|
Petr Lautrbach |
94c6f8 |
+HostKey /etc/ssh/ssh_host_ed25519_key
|
|
Petr Lautrbach |
2b2955 |
|
|
Jakub Jelen |
6cf9b8 |
# Ciphers and keying
|
|
Jakub Jelen |
6cf9b8 |
#RekeyLimit default none
|
|
Jakub Jelen |
5878eb |
|
|
Jakub Jelen |
0ce6c7 |
+# System-wide Crypto policy:
|
|
Jakub Jelen |
0ce6c7 |
+# If this system is following system-wide crypto policy, the changes to
|
|
Jakub Jelen |
0ce6c7 |
+# Ciphers, MACs, KexAlgoritms and GSSAPIKexAlgorithsm will not have any
|
|
Jakub Jelen |
0ce6c7 |
+# effect here. They will be overridden by command-line options passed on
|
|
Jakub Jelen |
0ce6c7 |
+# the server start up.
|
|
Jakub Jelen |
0ce6c7 |
+# To opt out, uncomment a line with redefinition of CRYPTO_POLICY=
|
|
Jakub Jelen |
0ce6c7 |
+# variable in /etc/sysconfig/sshd to overwrite the policy.
|
|
Jakub Jelen |
0ce6c7 |
+# For more information, see manual page for update-crypto-policies(8).
|
|
Jakub Jelen |
0ce6c7 |
+
|
|
Jan F. Chadima |
69dd72 |
# Logging
|
|
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:
|
|
Jakub Jelen |
6a0593 |
@@ -57,9 +62,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
|
|
Jakub Jelen |
6a0593 |
@@ -68,8 +75,8 @@ AuthorizedKeysFile .ssh/authorized_keys
|
|
Petr Lautrbach |
94c6f8 |
#KerberosGetAFSToken no
|
|
Jan F. Chadima |
69dd72 |
|
|
Jan F. Chadima |
69dd72 |
# GSSAPI options
|
|
Petr Lautrbach |
94c6f8 |
-#GSSAPIAuthentication no
|
|
Petr Lautrbach |
94c6f8 |
-#GSSAPICleanupCredentials yes
|
|
Jan F. Chadima |
69dd72 |
+GSSAPIAuthentication yes
|
|
Petr Lautrbach |
f3b39b |
+GSSAPICleanupCredentials no
|
|
Jan F. Chadima |
69dd72 |
|
|
Petr Lautrbach |
94c6f8 |
# Set this to 'yes' to enable PAM authentication, account processing,
|
|
Petr Lautrbach |
94c6f8 |
# and session processing. If this is enabled, PAM authentication will
|
|
Jakub Jelen |
6a0593 |
@@ -80,12 +87,12 @@ AuthorizedKeysFile .ssh/authorized_keys
|
|
Petr Lautrbach |
94c6f8 |
# If you just want the PAM account and session checks to run without
|
|
Jan F. Chadima |
69dd72 |
# PAM authentication, then enable this but set PasswordAuthentication
|
|
Jan F. Chadima |
69dd72 |
# and ChallengeResponseAuthentication to 'no'.
|
|
Petr Lautrbach |
94c6f8 |
-#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
|
|
Petr Lautrbach |
94c6f8 |
-#X11Forwarding no
|
|
Jan F. Chadima |
69dd72 |
+X11Forwarding yes
|
|
Jan F. Chadima |
69dd72 |
#X11DisplayOffset 10
|
|
Jan F. Chadima |
69dd72 |
#X11UseLocalhost yes
|
|
Petr Lautrbach |
94c6f8 |
#PermitTTY yes
|
|
Jakub Jelen |
6a0593 |
@@ -108,6 +115,12 @@ AuthorizedKeysFile .ssh/authorized_keys
|
|
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 |
|