Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenrong-wang committed Aug 30, 2024
2 parents a5b9544 + cbc3216 commit f142d53
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/cluster_initv7.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ echo -e "LogLevel QUIET" >> /etc/ssh/ssh_config
sed -i '/ClientAliveInterval/,+0d' /etc/ssh/sshd_config
sed -i '/ClientAliveCountMax/,+0d' /etc/ssh/sshd_config
echo -e "ClientAliveInterval 60\nClientAliveCountMax 3" >> /etc/ssh/sshd_config

sed -i 's/# StrictHostKeyChecking ask/StrictHostKeyChecking no/g' /usr/local/etc/ssh_config
echo -e "LogLevel QUIET" >> /usr/local/etc/ssh_config
sed -i '/ClientAliveInterval/,+0d' /usr/local/etc/sshd_config
sed -i '/ClientAliveCountMax/,+0d' /usr/local/etc/sshd_config
echo -e "ClientAliveInterval 60\nClientAliveCountMax 3" >> /usr/local/etc/sshd_config

systemctl restart sshd
systemctl start atd
systemctl enable atd
Expand Down

0 comments on commit f142d53

Please sign in to comment.