修改端口

vim /etc/ssh/sshd_config
去除Port前面的#,后面的22改成你希望的端口号

重启ssh服务

CentOS系统

service sshd restart

Debian/Ubuntu系统

service ssh restart

文章目录