ssh登录报ssh_exchange_identification: read: Connection reset by peer
来源:互联网 发布:燕郊招聘网络推广专员 编辑:程序博客网 时间:2024/05/20 14:43
今天向服务器上传文件,突然报这个错,网上看到了好几个解决方案,这里说一下解决我这个问题的:
继续百度,又跑到一个歪果仁的网站上,在一个不起眼论坛的一个不起眼的帖子中一个不起眼的跟帖中,一个哥们很低调的说了句“I know this quesiton is old ,but I wanted to share some findings I had,Check if /var/empty/sshd on the server has appropriate ownership and permissions. We had a chef script that was modifile to update some directory peimisions,but indavertently updated the diectory below the intended target,chaning ownership of /var to an applicaton user/group and changing the permissons to 755.”
去/var下看了看,果然权限很大,都是777,cd 到 empty 目录,果然有ssh这个文件夹,在cd进去,啥也没有了。于是直接执行两条命令:
cd /var chmod -R 755 *
然后就再次尝试了远程连接了下,竟然ok了。
看来Linux到处是坑啊,类似粗心的错误,有rm -f log * ,把当前目录下的东西都清空了;hostname命令带了一个空格,导致RAC崩溃了。听前辈的话没错儿,能不用root就不要用root,能不用root就不要用root,能不用root就不要用root!
转自http://blog.csdn.net/x6_9x/article/details/49983607
- ssh登录报ssh_exchange_identification: read: Connection reset by peer
- 由chmod改系统文件权限引ssh登录报ssh_exchange_identification: read: Connection reset by peer无法登陆问题
- 由chmod改系统文件权限引ssh登录报ssh_exchange_identification: read: Connection reset by peer无法登陆问题
- ssh_exchange_identification: read: connection reset by peer
- ssh_exchange_identification: read: Connection reset by peer
- ssh_exchange_identification: read: Connection reset by peer
- SSH 总是出现ssh_exchange_identification: read: Connection reset by peer问题的解决方案
- 服务器无法连接ssh_exchange_identification: read: Connection reset by peer
- 【OpenStack】SSH登录虚拟机出现"Read from socket failed: Connection reset by peer"问题的解决办法
- 【OpenStack】SSH登录虚拟机出现"Read from socket failed: Connection reset by peer"问题的解决办法
- ssh Read from socket failed: Connection reset by peer
- ssh Read from socket failed: Connection reset by peer
- 关于SSH登录出现Connection reset by peer 问题。
- Linux SSH连接报错Read from socket failed: Connection reset by peer -bash: fork: 资源暂时不可用
- fatal: read error: Connection reset by peer
- fatal: read error: Connection reset by peer
- SSH error ( Read from socket failed: Connection reset by peer ) and it's solution
- Connection reset by peer
- 揭开Wayland的面纱(二):Wayland应运而生
- MPAndroidChart 3.0——LineChart(折线图)
- 【个人笔记重点,不作为参考】主题:ubuntu 14.04 nfs安装与配置
- java读写自定义property文件
- opencv使用小技巧
- ssh登录报ssh_exchange_identification: read: Connection reset by peer
- 找最小的K个数
- 从零开始的JAVA学习
- C++11的新特性
- 解决Eclipse中TestNG乱码问题
- Redis缓存命令整理—String字符串操作命令
- 割点_去掉割点后的连通分支数(点连通图)
- Android隐藏软键盘
- 磁盘分区MBR和GPT