update setup script

This commit is contained in:
quackerd 2020-06-03 20:16:03 +08:00
parent 0d521f6dd8
commit 2a10ae9cad
Signed by: d
GPG Key ID: 590A22374D0B819F
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ sed -E 's/#* *PasswordAuthentication.*/PasswordAuthentication no/g' | \
sed -E 's/#* *Port.*/Port 77/g' > /etc/ssh/sshd_config
firewall-cmd --remove-service=ssh --permanent
firewall-cmd --add-port=77 --permanent
firewall-cmd --add-port=77/tcp --permanent
firewall-cmd --reload
systemctl restart sshd