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
已提問 9 個月前檢視次數 403 次
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
專家
已回答 9 個月前
  • 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
已回答 9 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南