You need to enable JavaScript to run this app.
Elastic Compute Service

Elastic Compute Service

Copy page
Download PDF
Key pairs
Viewing public key information
Copy page
Download PDF
Viewing public key information
If you want to specify that a single instance uses multiple public key files but do not have a local backup of the public key files, you can view and obtain public key information by using the three methods described in this topic.​
Applicable scenarios​
  • Within a Linux instance, you can use the obtained public key information to add multiple key pairs to an instance, allowing login to the same ECS instance by using multiple key pairs. For information about how to add multiple key pairs to an instance, see Adding or replacing key pairs.​
  • You can follow the instructions in this topic to create a key pair by importing an existing public key based on the obtained public key information.​
Procedure​
​
View within an instance
Local Windows operating system
Local Linux or macOS operating system
​
  1. Execute the following command to open the key pair configuration file. You can then view the public key information.​
  • ​
    vim .ssh/authorized_keys​
    ​
​
Subsequent operations​
After you obtain a public key, you may need to perform the following operations:​
Last updated: 2026.06.18 17:49:49