1、在linux终端输入ss -lnt查看以打开端口情况
2、关闭防火墙
sudo service iptables stop (视权限而定)
3、重启ssh服务
sudo service sshd restart