Lightsail AWS Can't Access SSH on browser

0

I'm currently unable to connect to my Lightsail instance, either via the IP in a browser or by SSH into it, in cases it times out. It did this on its own, no changes were made. I've tried rebooting start and stop the instance, and obviously I can't remote by SSH.

Enter image description here

JACK
질문됨 4달 전236회 조회
2개 답변
0

Hello.

There are several reasons for this, including the possibility that SSH is blocked by the firewall on the OS side or that the sshd service is not starting properly.
Therefore, I think it would be a good idea to troubleshoot by following the steps described in "An OS-level firewall is blocking SSH port access" in the document below.
https://repost.aws/knowledge-center/lightsail-resolve-ssh-console-errors

  • Instance boot failures, instance status check failures. or resource over-utilization on the instance.
  • An OS-level firewall is blocking SSH port access.
  • The default SSH port (22) is changed to a different one.
  • The SSH service is down.
profile picture
전문가
답변함 4달 전
  • Dear Riku, Currently, I am unable to connect to the server via SSH due to what appears to be start SSH service?

  • Does Lightsail's firewall or other settings allow SSH? Also, did you configure the steps in the documentation I shared to run a "launch script" when restoring from a Lightsail snapshot?

  • I have created the new instance from a Lightsail snapshot. but I still can't open a connection using SSH on the broswer, and I also can't connect Lightsail to PuTTY. I'm so stuck with my work now. Thanks for repying me.

  • It may be easier to abandon that Lightsail instance and create a new Lightsail instance.

  • But, sir, I will lose my data from the database. :(

0

Hi,

As an additional troubleshooting step, could you share the error being returned by your local SSH client that was mentioned in your initial post?

If you still cannot access your instance but can access other new instances not created from snapshots, I recommend creating a snapshot of your unreachable instance's root volume to recover any data on the instance. Once you have this snapshot, you can create a disk and attach it to an instance you can successfully SSH to.

The steps for creating a root volume snapshot and attaching it to a new instance can be found here: https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-create-an-instance-root-volume-snapshot

AWS
jscta
답변함 4달 전

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

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

질문 답변하기에 대한 가이드라인

관련 콘텐츠