How to unbind SSH key pairs for one or more Linux instances
Xiaobian to share with you how to achieve one or more Linux instances to untie SSH key pairs, I hope you have something to gain after reading this article, let's discuss it together!
DetachKeyPair
Unbind SSH key pairs for one or more Linux instances.
described
When using this interface, please note:
After unbinding the SSH key pair, you need to restart the instance (RebootInstance) for the changes to take effect.
After unbinding SSH key pairs, instances default to username and password authentication.
request parameters
return parameter
All are common return parameters. See Common Parameters.
example
request example
https://ecs.aliyuncs.com/? Action=DetachKeyPair&RegionId=cn-qingdao&InstanceIds=["i-xxxxxxx", "i-yyyyyyy"]&KeyPairName=test&
example of returned result is as
XML format
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E
JSON format
{ "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"}
error code
The following error codes are specific to this interface. For more error codes, visit the API Error Center.
After reading this article, I believe you have a certain understanding of "how to unbind SSH key pairs for one or more Linux instances." If you want to know more about this knowledge, please pay attention to the industry information channel. Thank you for reading!