master: ssh: connect to host master port 22: Connection refused
程序员文章站
2024-03-14 10:49:04
...
场景描述
- 本地 SecureCRT 连接虚拟机中伪分布式式Hadoop 环境,进行中,突然断电、断网,虚拟机 IP 地址更改(与本机不在同一网段)。
- 修改无线连接,恢复至同一网段
- SecureCRT 连接 虚拟机服务器 失败
- 本机 ping 虚拟机IP 不通(未知主机)
- 虚拟机 ping 本机IP 不通(未知主机)
- 关闭虚拟机,重启电脑
重启 Hadoop服务器
- 异常信息
master: ssh: connect to host master port 22: Connection refused
- 原因总结
-
/etc/hosts 文件中,IP映射配置错误
- 修改为变更后的 IP 地址,即
192.168.1.100 master
- 重启成功
- 修改为变更后的 IP 地址,即
- eclipse DFS Locations – Disconnect – 正常显示 Hadoop HDFS系统目录、文件
-
/etc/hosts 文件中,IP映射配置错误
References
上一篇: java DES加密工具类
推荐阅读
-
ssh:connect to host localhost port 22: Connection refuse解决
-
master: ssh: connect to host master port 22: Connection refused
-
ssh: connect to host ip port 22: Network is unreachable
-
ssh: connect to host 10.224.120.107 port 22: No route to host
-
ubuntu: ssh: connect to host ubuntu port 22: No route to host
-
ssh: connect to host github.com port 22: Connection timed out
-
ssh: connect to host gitlab.com port 22: Connection timed out
-
Ubuntu SSH - ssh: connect to host ****** port 22: Connection refused
-
ssh: connect to host github.com port 22: Connection timed out的解决方法
-
Mac中git报错ssh: connect to host github.com port 22: Connection timed out