1.修改默认的22端口号 vim /etc/ssh/sshd_config 2.重启ssh服务 systemctl restart sshd.service 3.查看监听端口 netstat -ltnp 4.测试连接 (阿里云的话记得要放开对应的端口号)