Could not connect to '192.168.70.128' (port 22): Connection failed.
解决方法
方法一 重启Centos,重启vm,重启xshell(万能重启)
方法二 关闭防火墙 Centos7: systemctl stop firewalld.service Centos6: service iptables stop
方法三 安装ssh-server并开启 (1)安装 yum install openssh-server 若显示该界面表示以及安装好了最新版 (2)启动: Centos7: systemctl start sshd.service Centos6: service sshd start
我的问题基本都是这三种方法解决的,需要注意的是Centos不同版本的不同操作