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개 답변
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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠