阿里云ECS——Linux连接错误[Read from socket failed: Connection reset by peer]解决方案
問題描述
改變了系統(tǒng)權(quán)限 chmod 777 -R /后,SSH連接錯誤[Read from socket failed: Connection reset by peer]。
主要是改變了/etc/ssh/* 文件的權(quán)限。
?
官方文檔
https://help.aliyun.com/knowledge_detail/41470.html?
問題分析
文件權(quán)限過大,系統(tǒng)文件要求文件對others其他用戶為私有,即不對其開放。
當(dāng)我們發(fā)送請求訪問到這個文件時,該文件不予理會,將其駁回,于是報錯。
解決方案
登錄阿里云ECS控制臺
遠(yuǎn)程連接?
登錄?
修改權(quán)限?
#chmod 400 /etc/ssh/*?如果 不能登錄 可以向阿里云提交工單解決
https://ia.aliyun.com/home?channel=ticket&mark=console-home?
參考文章
https://blog.51cto.com/dgd2010/1929789?
https://blog.csdn.net/dddxxy/article/details/89385611
https://blog.csdn.net/Evahuangchen/article/details/47292841
總結(jié)
以上是生活随笔為你收集整理的阿里云ECS——Linux连接错误[Read from socket failed: Connection reset by peer]解决方案的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 阿里云ECS——[您的云服务器(xxx.
- 下一篇: Linux——挖矿病毒(sysupdat