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?

已提問 2 年前檢視次數 259 次
1 個回答
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
專家
kentrad
已回答 2 年前
  • 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.

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

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

回答問題指南