Cannot connect to Lightsail FreeBSD instance created from snapshot

0

I run in this problem with a production instance and also reproduced it with a newly created instance:

  1. created a new Lightsail instance with FreeBSD as OS
  2. tried to connect via web SSH → connected successfully
  3. created a snapshot from the instance
  4. created a new instance from the snapshot
  5. tried to connect to the new instance via web SSH → connection impossible

When trying to connect, either from the web SSH or from my computer, I don't get any error message, it just continues to try connecting until it eventually times out.

I compared the informations about the 2 servers using aws lightsail get-instances and could not find any suspicious differences between the servers.

This is a serious issue, as I'm probably not the only one relying on daily snapshots for backup: it turns out they might be completely useless.

demandé il y a un an326 vues
1 réponse
0

It is possible that sshd is not running.
What happens if I set the startup script to run the following command when booting from a Lightsail snapshot?

sudo /etc/rc.d/sshd start
profile picture
EXPERT
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions