Centos如何修改ssh远程端口
Centos如何修改ssh远程端口?本教程以centos7系统为例。
本配置适用于centos6,centos7版本
1.编辑配置文件vim /etc/ssh/sshd_config
![]()
找到这一行
#Port 22 修改为22022 保存并退出


2.重启sshd服务
systemctl restart sshd

3.查看监听端口
netstat -tnlp|grep ssh

Centos如何修改ssh远程端口?本教程以centos7系统为例。
本配置适用于centos6,centos7版本
1.编辑配置文件vim /etc/ssh/sshd_config
![]()
找到这一行
#Port 22 修改为22022 保存并退出


2.重启sshd服务
systemctl restart sshd

3.查看监听端口
netstat -tnlp|grep ssh
