ssh_exchange_identification: Connection closed by remote host
2016-12-19 16:05
537 查看
使用SCP复制一个文件报如此错
[highgo@node1 hgdb]$ scp data.tar highgo@node2:/usr/local/cluster/hgdb/
ssh_exchange_identification: Connection closed by remote host
lost connection
查看ssh连接情况
[highgo@node1 hgdb]$ ssh node2 date
ssh_exchange_identification: Connection closed by remote host
查看NODE2
[root@node2 ~]# su - aaa
-bash: /dev/null: Permission denied
-bash: /dev/null: Permission denied
-bash: /dev/null: Permission denied
-bash: /dev/null: Permission denied
-bash: /dev/null: Permission denied
-bash: /dev/null: Permission denied
检查/dev/null
[root@node2 ~]# ll /dev/null
ls: cannot access /dev/null: No such file or directory
对比node1
[root@node1 ~]# ll /dev/null
crw-rw-rw- 1 root root 1, 3 Dec 19 07:05 /dev/null
重建节点2的/dev/null
[root@node2 ~]# rm -rf /dev/null && mknod -m 0666 /dev/null c 1 3
You have new mail in /var/spool/mail/root
[root@node2 ~]# ll /dev/null
crw-rw-rw- 1 root root 1, 3 Dec 19 07:32 /dev/null
此时依然不行
[highgo@node2 ~]$ ssh node1 date
Host key verification failed.
删掉.ssh路径下所有文件重新配置ssh互信,无效
检查tty,pty
[root@node2 .ssh]# ll /dev/tty
ls: cannot access /dev/tty: No such file or directory
[root@node2 .ssh]# ll /dev/pty
ls: cannot access /dev/pty: No such file or directory
创建
[root@node2 .ssh]# /sbin/MAKEDEV pty
[root@node2 .ssh]# /sbin/MAKEDEV tty
测试
[root@node2 .ssh]# ssh node1 date
The authenticity of host 'node1 (192.168.56.120)' can't be established.
RSA key fingerprint is be:77:2a:67:00:85:7a:19:73:8c:48:5f:c5:95:ae:ee.
Are you sure you want to continue connecting (yes/no)?
搞定
[highgo@node1 hgdb]$ scp data.tar highgo@node2:/usr/local/cluster/hgdb/
ssh_exchange_identification: Connection closed by remote host
lost connection
查看ssh连接情况
[highgo@node1 hgdb]$ ssh node2 date
ssh_exchange_identification: Connection closed by remote host
查看NODE2
[root@node2 ~]# su - aaa
-bash: /dev/null: Permission denied
-bash: /dev/null: Permission denied
-bash: /dev/null: Permission denied
-bash: /dev/null: Permission denied
-bash: /dev/null: Permission denied
-bash: /dev/null: Permission denied
检查/dev/null
[root@node2 ~]# ll /dev/null
ls: cannot access /dev/null: No such file or directory
对比node1
[root@node1 ~]# ll /dev/null
crw-rw-rw- 1 root root 1, 3 Dec 19 07:05 /dev/null
重建节点2的/dev/null
[root@node2 ~]# rm -rf /dev/null && mknod -m 0666 /dev/null c 1 3
You have new mail in /var/spool/mail/root
[root@node2 ~]# ll /dev/null
crw-rw-rw- 1 root root 1, 3 Dec 19 07:32 /dev/null
此时依然不行
[highgo@node2 ~]$ ssh node1 date
Host key verification failed.
删掉.ssh路径下所有文件重新配置ssh互信,无效
检查tty,pty
[root@node2 .ssh]# ll /dev/tty
ls: cannot access /dev/tty: No such file or directory
[root@node2 .ssh]# ll /dev/pty
ls: cannot access /dev/pty: No such file or directory
创建
[root@node2 .ssh]# /sbin/MAKEDEV pty
[root@node2 .ssh]# /sbin/MAKEDEV tty
测试
[root@node2 .ssh]# ssh node1 date
The authenticity of host 'node1 (192.168.56.120)' can't be established.
RSA key fingerprint is be:77:2a:67:00:85:7a:19:73:8c:48:5f:c5:95:ae:ee.
Are you sure you want to continue connecting (yes/no)?
搞定
相关文章推荐
- git ssh-keygen
- 关于unity3d发布webgl使用nodejs做服务器的实践
- window下配置SSH连接GitHub、GitHub配置ssh key
- 忆阻器课题 读书笔记(二)
- 详解Android中点击事件的几种实现方式
- android开关机动画
- Merge Intervals - leetcode 56号题目个人题解
- 多次连续点击导致Ajax重复提交
- AngularJS内置的一些服务之$http
- Spark性能优化:资源调优篇
- LAMP布署笔记
- linux内核链表的实现和使用和详解
- 不使用官网支付宝接口实现支付宝支付
- Android Fragmen完全解析(上)
- 实用符号Alt+小键盘快输
- PHP过滤常用标签的正则表达式
- git对已有项目上传单个文件
- vivado笔记
- nodejs进行js代码批量压缩
- 手机远程调试工具spy-debugger