filmov
tv
AWS EC2 SSH key management | How to launch and SSH into EC2 instance with public & private key pair
Показать описание
▬▬▬▬▬▬ * Instruction's Guides * ▬▬▬▬▬▬
In this lab session, we are going to launch and set up an EC2 instance on AWS. Along with that, we are going to create public and private key pairs for the EC2 instance so that we can SSH into an EC2 instance.
Typically there are two ways to generate the key-pair for an Ec2 instance on AWS -
1. Download the private key file(pem) from AWS itself at the time of launching an EC2 instance
2. Create your key pair(public key, private key) and associate those keys to launch the EC2 instance.
The first way is a little easy but you do not have very good control over the key generation. You have to rely on AWS to issue the key and use that key going forward. In case if you lose or misplace the key then it is impossible to SSH into your EC2 instance.
The Second is in which you can generate your key-pair(public, private keys) and add the public key to AWS manually by uploading it. And then use the private key to SSH into your EC2 instance. The only advantage which you have over here is you get complete control over the key generation part. Later on, you can use some secure channel to distribute the keys to other peer developers.
▬▬▬▬▬▬ ⭐️ 🕘Timestamps ⭐️ ▬▬▬▬▬▬
0:00 Intro
0:42 How to create a public key and private key for EC2 instance?
1:58 Part 1-Generate keys from AWS
4:51 Download the private key from AWS
7:26 Change the private file permission chmod 400
7:40 SSH into the EC2 instance
10:25 Part 2-Generate keys manually using ssh-keygen
13:29 Upload the public key to AWS
14:55 Launch EC2 instance with public key uploaded by us previously
17:04 SSH into the EC2 instance using the own private key
Disclaimer/Policy: All the content/instructions are solely mine. The source is completely open-source.
Video is copyrighted and can not be re-distributed on any platform.
#devops #aws #cloud #ec2 #ssh #keys
In this lab session, we are going to launch and set up an EC2 instance on AWS. Along with that, we are going to create public and private key pairs for the EC2 instance so that we can SSH into an EC2 instance.
Typically there are two ways to generate the key-pair for an Ec2 instance on AWS -
1. Download the private key file(pem) from AWS itself at the time of launching an EC2 instance
2. Create your key pair(public key, private key) and associate those keys to launch the EC2 instance.
The first way is a little easy but you do not have very good control over the key generation. You have to rely on AWS to issue the key and use that key going forward. In case if you lose or misplace the key then it is impossible to SSH into your EC2 instance.
The Second is in which you can generate your key-pair(public, private keys) and add the public key to AWS manually by uploading it. And then use the private key to SSH into your EC2 instance. The only advantage which you have over here is you get complete control over the key generation part. Later on, you can use some secure channel to distribute the keys to other peer developers.
▬▬▬▬▬▬ ⭐️ 🕘Timestamps ⭐️ ▬▬▬▬▬▬
0:00 Intro
0:42 How to create a public key and private key for EC2 instance?
1:58 Part 1-Generate keys from AWS
4:51 Download the private key from AWS
7:26 Change the private file permission chmod 400
7:40 SSH into the EC2 instance
10:25 Part 2-Generate keys manually using ssh-keygen
13:29 Upload the public key to AWS
14:55 Launch EC2 instance with public key uploaded by us previously
17:04 SSH into the EC2 instance using the own private key
Disclaimer/Policy: All the content/instructions are solely mine. The source is completely open-source.
Video is copyrighted and can not be re-distributed on any platform.
#devops #aws #cloud #ec2 #ssh #keys
Комментарии