vi /etc/ssh/sshd_config
找到
1# What ports, IPs and protocols we listen for
2Port 22
修改为自己的 端口号即可
1:wq
保存、退出
/etc/init.d/ssh restart
vi /etc/ssh/sshd_config
找到
1# What ports, IPs and protocols we listen for
2Port 22
修改为自己的 端口号即可
1:wq
保存、退出
/etc/init.d/ssh restart