Home  >  Article  >  Operation and Maintenance  >  How to unbind an SSH key pair for one or more Linux instances

How to unbind an SSH key pair for one or more Linux instances

坏嘻嘻
坏嘻嘻Original
2018-09-25 16:03:582646browse

The content of this article is about how to unbind SSH key pairs for 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. .

DetachKeyPair

Detach SSH key pairs for one or more Linux instances.

Description

When using this interface, please note:

After unbinding the SSH key pair, you need to restart instance (RebootInstance) to make changes take effect.

After unbinding the SSH key pair, the instance uses the username and password authentication method by default.

Request parameters

How to unbind an SSH key pair for one or more Linux instances

##Return parameters

are all public return parameters. See Public Parameters.

Example

Request example

https://ecs.aliyuncs.com/?Action=DetachKeyPair
&RegionId=cn-qingdao
&InstanceIds=["i-xxxxxxx", "i-yyyyyyy"]
&KeyPairName=test
&<公共请求参数>

Return example

XML format

<DetachKeyPairResponse>
    <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>
</DetachKeyPairResponse>

JSON format

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

Error code

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

How to unbind an SSH key pair for one or more Linux instances

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

Statement:
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