CentOS7:Could not connect to 'X.X.X.X' (port 22): Connection failed.
程序员文章站
2022-03-08 15:57:05
...
1)确保已连接网络
输入ifconfig查看ens33的inet跟Shell的主机号是否对应
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet (略) netmask 255.255.255.0 broadcast 192.168.80.25
2)如要开放 22 端口,输入以下命令即可(本人的主要原因是没开放22端口)
手动开启:
[aaa@qq.com ***]# /etc/init.d/sshd start
Starting sshd (via systemctl): [ 确定 ]
自动开启:
命令setup-->系统服务-->找到sshd.service-->点击空格键
[aaa@qq.com ***]# setup
3)重新客户机
reboot
4重连XShell
上一篇: iOS文档下载功能
下一篇: Navicat连接mysql时出现 Access denied for user ‘root‘@‘xxx.xxx.xxx.xxx‘ (using password: YES) 的原因及解决办法。
推荐阅读
-
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.