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
feita há 9 meses395 visualizações
2 Respostas
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
ESPECIALISTA
respondido há 9 meses
  • 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
respondido há 9 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas