내용으로 건너뛰기

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 :)

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠