diff --git "a/CentOS/\344\277\256\346\224\271ssh\347\253\257\345\217\243\345\217\267\347\232\204\346\226\271\346\263\225.md" "b/CentOS/\344\277\256\346\224\271ssh\347\253\257\345\217\243\345\217\267\347\232\204\346\226\271\346\263\225.md" index dcca710a..69ee0a6a 100644 --- "a/CentOS/\344\277\256\346\224\271ssh\347\253\257\345\217\243\345\217\267\347\232\204\346\226\271\346\263\225.md" +++ "b/CentOS/\344\277\256\346\224\271ssh\347\253\257\345\217\243\345\217\267\347\232\204\346\226\271\346\263\225.md" @@ -57,7 +57,6 @@ grep SELINUX=disabled /etc/selinux/config setenforce 0 ``` - ### 修改防火墙 ```bash @@ -72,7 +71,7 @@ setenforce 0 firewall-cmd --zone=public --add-port=2211/tcp --permanent # 查看2211端口打开情况 -firewall-cmd --query-port=2211/tcp +firewall-cmd --zone=public --query-port=2211/tcp ``` 重启iptables @@ -83,8 +82,9 @@ systemctl start iptables systemctl status iptables ``` -重启sshd +重启 ssh 查看状态 ```bash +systemctl restart sshd.service systemctl status sshd ```