天天看点

centos服务器修改ssh端口

1.修改配置文件

vim /etc/ssh/sshd_config.

centos服务器修改ssh端口

2.firewall开启2222或者安全组开启2222端口

firewall-cmd --zone=public --add-port=2222/tcp --permanent

3.重启sshd

systemctl restart sshd

4.重新远程服务器

继续阅读