|
Jakub Jelen |
51f5c1 |
diff -up openssh/ssh_config.redhat openssh/ssh_config
|
|
Jakub Jelen |
51f5c1 |
--- openssh/ssh_config.redhat 2020-02-11 23:28:35.000000000 +0100
|
|
Jakub Jelen |
51f5c1 |
+++ openssh/ssh_config 2020-02-13 18:13:39.180641839 +0100
|
|
Jakub Jelen |
3e611d |
@@ -43,3 +43,10 @@
|
|
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 |
3e611d |
+# This system is following system-wide crypto policy.
|
|
Jakub Jelen |
3e611d |
+# To modify the crypto properties (Ciphers, MACs, ...), create a *.conf
|
|
Jakub Jelen |
3e611d |
+# file under /etc/ssh/ssh_config.d/ which will be automatically
|
|
Jakub Jelen |
3e611d |
+# included below. For more information, see manual page for
|
|
Jakub Jelen |
3e611d |
+# update-crypto-policies(8) and ssh_config(5).
|
|
Jakub Jelen |
645408 |
+Include /etc/ssh/ssh_config.d/*.conf
|
|
Jakub Jelen |
51f5c1 |
diff -up openssh/ssh_config_redhat.redhat openssh/ssh_config_redhat
|
|
Jakub Jelen |
51f5c1 |
--- openssh/ssh_config_redhat.redhat 2020-02-13 18:13:39.180641839 +0100
|
|
Jakub Jelen |
51f5c1 |
+++ openssh/ssh_config_redhat 2020-02-13 18:13:39.180641839 +0100
|
|
Jakub Jelen |
ffb178 |
@@ -0,0 +1,21 @@
|
|
Jakub Jelen |
ffb178 |
+# The options here are in the "Match final block" to be applied as the last
|
|
Jakub Jelen |
ffb178 |
+# options and could be potentially overwritten by the user configuration
|
|
Jakub Jelen |
ffb178 |
+Match final all
|
|
Jakub Jelen |
ffb178 |
+ # Follow system-wide Crypto Policy, if defined:
|
|
Jakub Jelen |
ffb178 |
+ Include /etc/crypto-policies/back-ends/openssh.config
|
|
Jakub Jelen |
639ae2 |
+
|
|
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 |
ffb178 |
+
|
|
Jakub Jelen |
ffb178 |
+# Uncomment this if you want to use .local domain
|
|
Jakub Jelen |
ffb178 |
+# Host *.local
|
|
Jakub Jelen |
51f5c1 |
diff -up openssh/sshd_config.0.redhat openssh/sshd_config.0
|
|
Jakub Jelen |
51f5c1 |
--- openssh/sshd_config.0.redhat 2020-02-12 14:30:04.000000000 +0100
|
|
Jakub Jelen |
51f5c1 |
+++ openssh/sshd_config.0 2020-02-13 18:13:39.181641855 +0100
|
|
Jakub Jelen |
51f5c1 |
@@ -970,9 +970,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 |
51f5c1 |
diff -up openssh/sshd_config.5.redhat openssh/sshd_config.5
|
|
Jakub Jelen |
51f5c1 |
--- openssh/sshd_config.5.redhat 2020-02-11 23:28:35.000000000 +0100
|
|
Jakub Jelen |
51f5c1 |
+++ openssh/sshd_config.5 2020-02-13 18:13:39.181641855 +0100
|
|
Jakub Jelen |
51f5c1 |
@@ -1614,7 +1614,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 |
51f5c1 |
diff -up openssh/sshd_config.redhat openssh/sshd_config
|
|
Jakub Jelen |
51f5c1 |
--- openssh/sshd_config.redhat 2020-02-11 23:28:35.000000000 +0100
|
|
Jakub Jelen |
51f5c1 |
+++ openssh/sshd_config 2020-02-13 18:20:16.349913681 +0100
|
|
Jakub Jelen |
653d07 |
@@ -10,6 +10,14 @@
|
|
Petr Lautrbach |
470ebd |
# possible, but leave them commented. Uncommented options override the
|
|
Petr Lautrbach |
470ebd |
# default value.
|
|
Jakub Jelen |
653d07 |
|
|
Jakub Jelen |
653d07 |
+# To modify the system-wide sshd configuration, create a *.conf file under
|
|
Jakub Jelen |
653d07 |
+# /etc/ssh/sshd_config.d/ which will be automatically included below
|
|
Jakub Jelen |
653d07 |
+Include /etc/ssh/sshd_config.d/*.conf
|
|
Jakub Jelen |
653d07 |
+
|
|
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 |
51f5c1 |
diff -up openssh/sshd_config_redhat.redhat openssh/sshd_config_redhat
|
|
Jakub Jelen |
51f5c1 |
--- openssh/sshd_config_redhat.redhat 2020-02-13 18:14:02.268006439 +0100
|
|
Jakub Jelen |
51f5c1 |
+++ openssh/sshd_config_redhat 2020-02-13 18:19:20.765035947 +0100
|
|
Jakub Jelen |
868439 |
@@ -0,0 +1,29 @@
|
|
Jakub Jelen |
6c68d6 |
+# This system is following system-wide crypto policy. The changes to
|
|
Jakub Jelen |
868439 |
+# crypto properties (Ciphers, MACs, ...) will not have any effect in
|
|
Jakub Jelen |
868439 |
+# this or following included files. To override some configuration option,
|
|
Jakub Jelen |
868439 |
+# write it before this block or include it before this file.
|
|
Jakub Jelen |
868439 |
+# Please, see manual pages for update-crypto-policies(8) and sshd_config(5).
|
|
Jakub Jelen |
868439 |
+Include /etc/crypto-policies/back-ends/opensshserver.config
|
|
Jakub Jelen |
0ce6c7 |
+
|
|
Jan F. Chadima |
69dd72 |
+SyslogFacility AUTHPRIV
|
|
Jakub Jelen |
51f5c1 |
+
|
|
Jan F. Chadima |
69dd72 |
+PasswordAuthentication yes
|
|
Jan F. Chadima |
69dd72 |
+ChallengeResponseAuthentication no
|
|
Jakub Jelen |
51f5c1 |
+
|
|
Jan F. Chadima |
69dd72 |
+GSSAPIAuthentication yes
|
|
Petr Lautrbach |
f3b39b |
+GSSAPICleanupCredentials no
|
|
Jakub Jelen |
51f5c1 |
+
|
|
Jan F. Chadima |
69dd72 |
+UsePAM yes
|
|
Jakub Jelen |
51f5c1 |
+
|
|
Jan F. Chadima |
69dd72 |
+X11Forwarding yes
|
|
Jakub Jelen |
6c68d6 |
+
|
|
Jakub Jelen |
03264b |
+# It is recommended to use pam_motd in /etc/pam.d/sshd instead of PrintMotd,
|
|
Jakub Jelen |
6c68d6 |
+# as it is more configurable and versatile than the built-in version.
|
|
Jakub Jelen |
6c68d6 |
+PrintMotd no
|
|
Jakub Jelen |
6c68d6 |
+
|
|
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 |
+
|