AWS EC2 Connection closed by when trying ssh into instance

前端 未结 8 1096
猫巷女王i
猫巷女王i 2020-12-14 05:26

Recently I set up a new EC2 instance. The next day I was not able to connect to my instance via ssh. I could connect and disconnect the day before, I am sure I did nothing.

8条回答
  •  南笙
    南笙 (楼主)
    2020-12-14 05:56

    (1) Please check when you execute the ssh command, are you in the same folder where you put your pem key. Else you should use "ssh -i /your_key_path /mykey.pem".

    (2) If that doesn't help. I think you could create another key and set your EC2 instance through AWS webpage. Then try again.

提交回复
热议问题