From de351fbd476b21bf5a9047f63fb57f7ecef87511 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 11 Jan 2019 02:43:12 -0500 Subject: [PATCH] Fix remoteshell compatibility with custom Match (#5936) If a user has a custom Match directive, remoteshell would create an invalid configuration. Fix by ensuring we are outside of a match context by doing Match all explicitly. --- xCAT/postscripts/remoteshell | 1 + 1 file changed, 1 insertion(+) diff --git a/xCAT/postscripts/remoteshell b/xCAT/postscripts/remoteshell index 0c266d9b6..1a8b1c2b5 100755 --- a/xCAT/postscripts/remoteshell +++ b/xCAT/postscripts/remoteshell @@ -59,6 +59,7 @@ then logger -t $log_label -p local4.info "remoteshell: setup /etc/ssh/sshd_config and ssh_config" cp /etc/ssh/sshd_config /etc/ssh/sshd_config.ORIG #delete all occurance of the attribute and then add xCAT settings + echo "Match all" >>/etc/ssh/sshd_config sed -i '/X11Forwarding /'d /etc/ssh/sshd_config echo "X11Forwarding yes" >>/etc/ssh/sshd_config sed -i '/MaxStartups /'d /etc/ssh/sshd_config