[root@xx]# vim /etc/ssh/sshd_config //修改端口为3330
[root@xx]# iptables -I INPUT -p tcp –dport 3330 -j ACCEPT //添加防火墙3330端口 允许
[root@xx]# service iptables save //保存规则
[root@xx]# service ssh restart //重启ssh
远程 sshd提示:Server unexpectedly closed network connection
最新推荐文章于 2025-06-16 14:07:56 发布