ssh: connect to host XXX port 22: Connection timed out的问题
登录Linux服务器
文章共119字 · 阅读需要大约1分钟
一键AI生成摘要,助你高效阅读
问答
·
在Mac电脑主机下登录VMware centos7 linux失败,
主机终端输入:ssh root@xxx.xx.xx
提示:ssh: connect to host XXX port 22: Connection timed out
经过排查,
1、ping ip 正常。
2、用命令service iptables status,查看防火墙也正常(防火墙没有屏蔽22端口)。
3、ssh服务也正常开启。
于是使用ssh+ip地址登录即可(省去输入账号名),
在之后再使用ssh 账户名@IP的方式也能正常登录。
更多推荐
已为社区贡献1条内容
所有评论(0)