I have an Amazon ec2 set up running Ubuntu 14.04.
I have created a new user. My intent is to use ssh to log into my server with this user.
The login provided with the EC2 server works fine
ssh -i key.pem ubuntu@ipaddress however I want to do this with my new user.
I have generated a key pair for this user and got the private key and public
.pub key however I don't have a
.pem key. I have done a little reading and some sources say that the private key is the
.pem key I just need to add the extension.
Is this correct?
If not what is the correct way to generate a
.pem key for this new user?
Additionally How to I download this
.pem key to my local machine.
I really am looking for the simpliest answer here. I have read several similar posts but often the answer goes into too deep of detail into what .pem means I am just looking for a simple answer.
- Question 1: Are .pem and private keys the same thing when generated using sshkeygen?
- Question 2: What is the correct way to generate a .pem file on ubuntu
- Question 3: what is the correct way to transfer files from a remote host to your local machine