In this video, I will show you how to reset or recover your Amazon EC2 instance PEM key (SSH) file. This is a common problem that many AWS users face when they lose access to their EC2 instances due to missing PEM key file.
First, we will take a backup/snapshot of the volume used by the current EC2 instance. We will create a temporary EC2 instance in the same region as your current EC2 instance. Stop the current EC2 instance, detach the volume, and attach it to the new temporary EC2 instance. Mount drive on new ec2 instance and replace ssh public key in file .ssh/authorized_keys file. Attach the disk back to the EC2 instance.
00:00:22 Verify you have Elastic IP (EIP)
00:00:52 Take a snapshot of the current ec2 volume.
00:01:28 View snapshot progress.
00:01:39 Create temporary EC2 instance.
00:03:27 Detach volume and attach on new EC2 instance.
00:05:35 ssh into temporary EC2 instance.
00:05:46 Fix SSH key bad permissions error.
00:06:48 View and mount volume.
00:07:30 Reset SSH key file.
00:08:00 Create SSH key file.
00:10:50 Delete temporary EC2 instance.
https://serverok.in/aws
Смотрите видео How to Reset Amazon EC2 PEM Key (SSH Key) File онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь ServerOK 16 Январь 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 55 раз и оно понравилось людям.