在使用Xshell连接VM虚拟机的CentOS6时,提示“Could not connect to '192.168.182.128' (port 22): Connection failed.”
解决方案:
1.检查SSL,如没有,使用yum安装服务, chkconfig sshd on
2.检查防火墙,尝试关闭防火墙是否可以连接, chkconfig iptables off
3.检查sshd_config配置文件, vim /etc/ssh/sshd_config
从阿里云镜像下载的iso默认配置Authentication下均被注释,将如下三项打开。