CentOS7 修改 SSH 端口号
修改配置文件
sudo vim /etc/ssh/sshd_configPort <port>sudo systemctl restart sshd防火墙设置
sudo firewall-cmd --permanent --list-allsudo firewall-cmd --permanent --add-service=sshsudo firewall-cmd --permanent --remove-port=22/tcp
登录测试
Last updated