Use the uploaded key pair file when starting EC2 instances in AWS

Source: Internet
Author: User

InCreateWhen an EC2 instance is started, we can create a temporary key pair file to remotely log on to the instance through SSH.

Alternatively, you can use the previously created key pair file.

However, sometimes we need to make all EC2 instances use the same keypair file (or even created by different AWS accounts). At this time, we need to upload an existing key pair file.

On the Management page, click Import keypair, enter the keypair name, and enter the public key content in Public Key contents.

What? You only have a private key file. You don't know where the Public Key is?

If the EC2 instance is in Linux, log on to your previous EC2 instance and find the. Ssh/authorized_keys file in the user's Directory, which contains your public key.

In this way, if you create an EC2 instance based on the public key, you can use the private key in your hand to log on to the instance.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.