in Education by
I need to know of any way to access a running instance in Amazon EC2. I DON'T have the original keypair ".pem" file Terminating/rebooting is not feasible the closest to my question I have found was this but I hope things have changed since. is there any way to download that pem file or assign a new keypair? Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
For security reasons, Amazon only lets you download the keypairs only once. So in cases where you lose access to your key pairs, what you can do is, replace the keypair but you can do that only if you stop the instance. All you have to do is, stop the instance, detach the root volume(only if the root volume is EBS) and attach to other instance for which you have a keypair, modify the authorised_keys file and move this volume back to the original instance. You can also check out this AWS documentation for connecting to your instance if you lose your private key.

Related questions

0 votes
    I need to know of any way to access a running instance in Amazon EC2. I DON'T have the original keypair ". ... or assign a new keypair? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I was given AWS Console access to an account with 2 instances running that I cannot shut down (in production). ... into the instances? Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    I'm working to set up Panda on an Amazon EC2 instance. I set up my account and tools last night and had no ... would be a great help! Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    I want to use my Amazon ec2 instance but faced the following error: Permission denied (publickey). I have ... denied (publickey) Select the correct answer from above options...
asked Jan 31, 2022 in Education by JackTerrance
0 votes
    I've created a new linux instance on Amazon EC2, and as part of that downloaded the .pem file to allow me ... Nov 11:20 amazonec2.pem Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I cannot SSH into my instance - Operation timed out. What could be the reasons why, and what can I do to ... because of memory issues. Select the correct answer from above options...
asked Feb 4, 2022 in Education by JackTerrance
0 votes
    How do I change the key pair for my ec2 instance in AWS management console? I can stop the instance, I can ... instance's key pair. Select the correct answer from above options...
asked Jan 31, 2022 in Education by JackTerrance
0 votes
    I have an EC2 instance running (FreeBSD 9 AMI ami-8cce3fe5), and I can ssh into it using my amazon-created ... it can be prevented? Select the correct answer from above options...
asked Jan 31, 2022 in Education by JackTerrance
0 votes
    I just signed up for Amazon's new Elastic Beanstalk offering. What I can't figure out is how to SSH to a ... instance on my behalf. Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    Any easy way to move and custom AMI image between regions? (North Virginia -> Singapore) I know you can mess up with ... way to do it? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I want to change the time zone set in my Amazon EC2 instance running Ubuntu Linux to local time. My Question ... zone in Amazon EC2? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    We have a large ec2 instance running in Asia pacific region. We want to reserve that particular instance.In aws ... out on something Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I have thought a lot recently about the different hosting types that are available out there. We can get ... added probably. Thanks Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    How should I use the new AWS EC2 classes (r3, i2) with my existing AMI without recreating the whole system ... only PVM AMI images. Select the correct answer from above options...
asked Feb 4, 2022 in Education by JackTerrance
0 votes
    I need SSH access to an Amazon EC2 instance running Ubuntu. All I have is the Amazon username and password. Any ideas? Select the correct answer from above options...
asked Feb 4, 2022 in Education by JackTerrance
...