跳至内容

AWS LIghtsail: After removing additional disk and destroying it, unable to SSH connect to instance.

0

Hello! After removing the additional disk connected to a lightsail instance and destroying the disk afterwards, I'm unable to connect to the instance via SSH. Connecting to the instance via the browser interface is still working.

Rebooting doesn't help. I tried to create a new disk and mount it to the same path, which also didn't work.

The additional disk didn't contain any critical files. In fact, I removed it because it was empty.

Any ideas how to solve this? Or will I have to create a new instance?

已提问 2 年前494 查看次数

1 回答
2
已接受的回答

Hi,

For the disk detachment, did you perhaps stop the instance and are you also perhaps not using a Static Ip with your Lightsail instance? Because the public IPv4 address of the instance may have changed during the stop-start of the instance (if not using a Static Ip) and hence your older SSH command using the older instance public IPv4 address is no longer working.

If you instead use the instance's current public IPv4 address, SSH should likely work.

Thanks.

AWS
专家

已回答 2 年前

AWS
审核人员

已审核 2 年前

专家

已审核 2 年前

专家

已审核 2 年前

  • You are right! It seems the IP address changed on reboot. I didn't know that would happen!

    Thank you!

  • Just to clarify, the IP address changes on stopping and later starting of an instance, not on reboot. The IP address does not change on reboot. stop-start and reboot are separate actions. . Glad it was just that :)

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。