ssh_exchange_identification:读取:对等方重置连接(在chown命令之后)

时间:2019-05-16 17:46:34

标签: linux amazon-ec2 ssh

我在我的aws ec2实例上运行chown -R ec2-user /var以便上传文件,然后在注销后,我再也无法登录。 -vv的错误如下。

尝试重新启动,但连接只是超时。我还尝试将大小增加到500 GiB。也不起作用。 我该如何解决?或者,还有另一种无需使用该命令即可上传文件的方法吗?

$ ssh -i "d://workspace/projectX/MyAngular7.pem" ec2-user@13.59.69.106 -vv
OpenSSH_7.9p1, OpenSSL 1.1.1a  20 Nov 2018
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: resolve_canonicalize: hostname 13.59.69.106 is address
debug2: ssh_connect_direct
debug1: Connecting to 13.59.69.106 [13.59.69.106] port 22.
debug1: Connection established.
debug1: identity file d://workspace/projectX/MyAngular7.pem type -1
debug1: identity file d://workspace/projectX/MyAngular7.pem-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.9
ssh_exchange_identification: read: Connection reset by peer

重启后:

$ ssh -i "d://workspace/projectX/MyAngular7.pem" ec2-user@13.59.69.106 -vv
OpenSSH_7.9p1, OpenSSL 1.1.1a  20 Nov 2018
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: resolve_canonicalize: hostname 13.59.69.106 is address
debug2: ssh_connect_direct
debug1: Connecting to 13.59.69.106 [13.59.69.106] port 22.
debug1: connect to address 13.59.69.106 port 22: Connection timed out
ssh: connect to host 13.59.69.106 port 22: Connection timed out

0 个答案:

没有答案