Xshell:Could not connect to '10.10.10.135' (port 22): Connection failed.
程序员文章站
2022-05-01 14:47:23
...
小白记录:
xshell 和 navicat 连接CentOS 7时报错
Could not connect to ‘10.10.10.135’ (port 22): Connection failed.
2003-can’t connect to mysql server on ‘10.10.10.135’
首先,Xshell之前可以连接CentOS7,检查了一下ssh有没有开启(如果没有就请先安装openssh-server服务,在终端中输入 yum list installed | grep openssh-server)
[aaa@qq.com ~]# ps -e | grep sshd
826 ? 00:00:00 sshd
1174 ? 00:00:00 sshd
1204 ? 00:00:00 sshd
再检查22端口有无打开
[aaa@qq.com ~]# netstat -an | grep 22
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 36 10.10.10.135:22 10.10.10.1:53341 ESTABLISHED
tcp 0 0 10.10.10.135:22 10.10.10.1:52930 ESTABLISHED
tcp6 0 0 :::22 :::* LISTEN
unix 3 [ ] STREAM CONNECTED 17822
端口也是正常打开的,最后大概就是我做数据库的配置,导致虚拟机本身出现了问题,还原虚拟网卡的配置即可(记得备注一下你的网卡信息,网关什么的):
最后还原后输入ifconfig或ip add查看地址是否还原(如果虚拟机的ip地址没有设置成静态可能会有所变化)
推荐阅读
-
Xshell 链接 Could not connect to '192.168.80.129' (port 22): Connection fa
-
Could not connect to '192.168.91.128' (port 22): Connection failed安装ssh
-
CentOS7 Xshell 连接提示 Could not connect to ‘192.168.61.11‘ (port 22): Connection failed.
-
Xshell:Could not connect to '10.10.10.135' (port 22): Connection failed.
-
【解决问题】引入.vmx文件后,xshell连接Could not connect to ‘192.168.211.132‘ (port 22): Connection failed.
-
xshell中连接Ubuntu出现错误:Could not connect to ‘IP‘ (port 22): Connection failed.
-
Xshell 链接 Could not connect to '192.168.80.129' (port 22): Connection fa
-
CentOS7:Could not connect to 'X.X.X.X' (port 22): Connection failed.
-
xshell连接ubuntu失败Could not connect to ‘192.168.193.129‘ (port 22): Connection failed.