help! i delete libssl.so causing ec2 can not ssh

0

I delete libssl.so, which sudo/ssh depended, causing my ec2 machine can not login, how can i recover from this suitcation?

1 Resposta
1
  1. Stop the broken instance
  2. Detach the root volume from the broken instance
  3. Boot up a new instance that you can log in to
  4. Attach volume from broken instance to the new instance
  5. Mount the volume at the OS level
  6. Reinstall the missing library
  7. Detach volume from new instance
  8. Attach fixed volume back the broken instance
  9. Boot up instance.
profile pictureAWS
ESPECIALISTA
kentrad
respondido há 2 anos
  • it work! thank you so much, it save my job.

  • let's tell more about details to help guys with the same problem.

    1. When meet "wrong type" while mount volumns, we can use the following command line. mount -t xfs -o nouuid /dev/nvme2n1p2

    2. the aws attach page tell you it will mount at /dev/sda, actually you can't find it in ec2. the attach volumns real dev name in instance is show bying the cml: lsblk -f. The dev without mount path is the new volumn we found.

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