Amazon ssh_exchange_identification:读取:连接被对等方重置:更改权限时 [英] Amazon ssh_exchange_identification: read: Connection reset by peer: when changing permissions

查看:293
本文介绍了Amazon ssh_exchange_identification:读取:连接被对等方重置:更改权限时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我成功地继续使用了Amazon EC2,并且一直在尝试.我感到烦恼的是,我需要始终在所有内容上运行sudo,因此我决定要做的是转到route目录并更改所有内容的写入,写入和执行权限.

I went on to my amazon ec2 successfully and I have been experimenting around. I found it annoying that I needed to always run sudo on everything so what I decided to do was to go to the route directory and change the permissions of everything to write, write, and execute.

我是这样做的

chmod -R 777 .

然后我退出了服务器.

下次我尝试登录时会得到

The next time I tried to logon I got

"ssh_exchange_identification: read: Connection reset by peer"

我该如何解决?

谢谢

推荐答案

我的解决方案可能微不足道,但是谁知道它可以提供帮助呢?

My solution is probably trivial, but who knows who it could help:

我只是在浏览器中重新启动了EC2实例(AWS-> EC2仪表板->实例->(选择您的实例)->(单击操作下拉菜单)->实例状态->重新启动

I simply rebooted my EC2 instance in the browser (AWS -> EC2 Dashboard -> instances -> (select your instance) -> (click the action dropdown) -> Instance State -> Reboot

您可能需要先等待一分钟,然后再尝试使用ssh connection命令.希望能对某人有所帮助.

You may want to give it a minute before you try you ssh connection command again. Hope that helps someone.

这篇关于Amazon ssh_exchange_identification:读取:连接被对等方重置:更改权限时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆