Posts

Showing posts from May, 2020

Different Ways to change .Pem file of AWS instance Part : - 1 (Using Session manager)

Image
Pem file is a private key file that you download when you first time generate key from key pair section or when you create an instance. It is use to securely connect your instance using terminal. So AWS stores public key and they let us download .Pem one time only. In that case, Someone may loose .Pem file by mistake and you are not able to ssh in your instance without .Pem file. So the question is  How to change your .Pem file of your instance in this scenario.  There are  3 ways that i know, how to change .Pem file.  Using Session Manager Using AWS-Support Reset Access automation document in System Manager Using new instance I will guide you through the step wise. In this blog i will explain how to change .Pem file using Session Manager. This use full when your instance is running or it is instance store backed, so in that case this is very useful method. If you haven't attach the System Manager role to AWS instance then this can be done using   how to co...

How to Connect your instance when you lost .Pem file ?

Image
Ohh, Have you lost your .Pem file ? If it is yes then you are in hurrry to get it fix.But don't worry, I have one quick fix for this thing. So follow below steps and get it fix effortlessly. Step 1 : -  Login into aws with your root user access. First you need to create one role of Ssm ( System manager ) . Go to IAM section and select create role ,select EC2 under use case section   after typing ssm, select  AmazonEC2RoleforSSM  ,next give name for this role. Now you need name this role and create role. Step 2 : - Next you need to attach Ec2 role to your instance(the one whose .Pem file was lost). And then select the Attach/Replace IAM role option under the Instance Setting option. Select the name of role you have created.(my is EC2roleforSSM) Step 3 : - Go to System Manager (By typing in search bar), then select Session Manager that is under the Instances and Nodes option. you can search instance here in many ways, then select the instance whose .Pem file was l...

Contact Me

Name

Email *

Message *