ssh连接报Connection closed by foreign host.
来源:互联网 发布:淘宝查号网 编辑:程序博客网 时间:2024/04/30 00:18
今天连接linux时居然连不上,报错信息是:
Connecting to 192.168.16.133:22...Connection established.To escape to local shell, press 'Ctrl+Alt+]'.Connection closed by foreign host.Disconnected from remote host(hadoop3) at 10:56:11.Type `help' to learn how to use Xshell prompt.
查了一下终于找到了解决办法,只需要一些命令就可以了:
cd /etc/ssh sudo chmod 644 ./* sudo chmod 600 ssh_host_dsa_key sudo chmod 600 ssh_host_rsa_key sudo chmod 755 . /etc/init.d/sshd restart完成后在重新连接就行了。
0 0
- ssh连接报Connection closed by foreign host.
- SSH无法连接:Connection closed by foreign host
- SSH连接服务器报ssh_exchange_identification: Connection closed by remote host
- SSH连接服务器报ssh_exchange_identification: Connection closed by remote host
- Connection closed by foreign host.
- Connection closed by foreign host.
- Connection closed by foreign host.
- Connection closed by foreign host.
- Connection closed by foreign host
- Connection closed by foreign host
- Connection closed by foreign host
- Connection closed by foreign host
- 【ubuntu】ssh连接ubuntu虚拟机被拒Connection closed by foreign host.
- Linux登录报错-Connection closed by foreign host
- Xshell连接CentOS 6.9掉线 Connection closed by foreign host
- Ubuntu 连接错误 Connection closed by foreign host
- Connection closed by foreign host问题解决
- ssh连接提示 "Connection closed by remote host"
- C语言总结
- 第八周项目3--顺序串算法
- 验证码登陆demo
- iOS10中的极光推送消息的适配
- cin.get(line,ArSize) cin.getline(line,ArSize)和getline(cin,name)读取一行字符串区别
- ssh连接报Connection closed by foreign host.
- 日志的环绕通知(ip获取dubbo版)
- Swift3.0语言教程使用指针创建和初始化字符串
- 1003. Computer Game
- 【第9周 项目1 - 猴子选大王(数组版)】
- 排序算法
- 第八周 建立顺序串的算法库
- embedding_lookup
- 第八周 项目3-顺序串算法