解决:修改ssh端口失败

缘由:防火墙未打开相应的端口,centos7的防火墙是firewall,网上有一些教程是用的iptableshtml vi /etc/ssh/sshd_config 打开ssh配置文件,注意是sshd_config,而不是ssh_congfig 在#Port 22 下方添加一行Port 3306 不是直接把#Port 22注释删掉,否则后面万一出错连不上就很麻烦 systemctl status
相关文章
相关标签/搜索