2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-23 12:51:10 +00:00

Merge pull request #5951 from xcat2/revert-5945-onissue

Revert "fix issue PR #5936 resulted in remoteshell failed in rhels6.10 #5944"
This commit is contained in:
Gᴏɴɢ Jie
2019-01-15 17:19:41 +08:00
committed by GitHub

View File

@@ -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