From 5d2f23a247fa7e14a91e99297d54bf4bba22aebd Mon Sep 17 00:00:00 2001 From: yangsong Date: Tue, 15 Jan 2019 17:15:26 +0800 Subject: [PATCH] Revert "fix issue PR #5936 resulted in remoteshell failed in rhels6.10 #5944" --- xCAT/postscripts/remoteshell | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/xCAT/postscripts/remoteshell b/xCAT/postscripts/remoteshell index 378a7e386..1a8b1c2b5 100755 --- a/xCAT/postscripts/remoteshell +++ b/xCAT/postscripts/remoteshell @@ -59,13 +59,11 @@ 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 - sed -i '/MaxStartups /'d /etc/ssh/sshd_config - echo "MaxStartups 1024" >>/etc/ssh/sshd_config - - echo "Match Host *" >>/etc/ssh/sshd_config + 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 + echo "MaxStartups 1024" >>/etc/ssh/sshd_config if [ "$SETUPFORPCM" = "1" ]; then if [[ $OSVER == sle* ]];then