Linux修改ssh端口 服务器测试环境:CentOS 7.9 工具:Xshell7 //在sshd_config中添加端口 vi /etc/ssh/sshd_config //重启ssh服务 systemctl restart sshd //添加防火墙端口的前提是防火墙要打开