AWS EC2 Connection closed by when trying ssh into instance

前端 未结 8 1089
猫巷女王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 06:09

    I had the same issue, Its the problem of the permissions you give to pem private key file. Make sure you run ssh command in the terminal with the sudo (Administrative) Access.

提交回复
热议问题