How to bind an SSH key pair to one or more Linux instances

坏嘻嘻
Release: 2018-09-25 15:36:49
Original
3009 people have browsed it

The content of this article is about how to bind an SSH key pair to one or more Linux instances. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you. help.

AttachKeyPair

Attach an SSH key pair to one or more Linux instances.

Description

When you use this interface, please note:

Windows instances do not support SSH key pairs.

After binding the SSH key pair, the username and password verification method will be disabled.

If the instance is in the Running state, the SSH key pair will take effect after restarting the instance (RebootInstance).

If the instance is in Stopped state, the SSH key pair will take effect after starting the instance (StartInstance).

If the instance has been bound to an SSH key pair, the new SSH key pair automatically replaces the original SSH key pair.

Request parameters

How to bind an SSH key pair to one or more Linux instances

##Return parameters

are all public return parameters. See Public Parameters.

Example

Request example

https://ecs.aliyuncs.com/?Action=AttachKeyPair
&RegionId=cn-qingdao
&KeyPairName=test
&InstanceIds=["i-XXXXX"]
&<公共请求参数>
Copy after login

Return example

XML format

<AttachKeyPairResponse>
    <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>
</AttachKeyPairResponse>
Copy after login

JSON format

{
    "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Copy after login

Error code

The following are error codes unique to this interface. For more error codes, please visit the API Error Center.

How to bind an SSH key pair to one or more Linux instances

The above is the detailed content of How to bind an SSH key pair to one or more Linux instances. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template