Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Method of binding a SSH key pair to one or more Linux instances

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the method of binding a SSH key pair to one or more Linux instances, which can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.

AttachKeyPair

Bind a SSH key pair to one or more Linux instances.

Description

When you use this interface, you should be aware of:

Windows instance does not support SSH key pair.

When the SSH key pair is bound, the authentication of the user name and password is disabled.

If the instance is in a running (Running) state, the SSH key pair takes effect after restarting the instance (RebootInstance).

If the instance has been bound with a SSH key pair, the new SSH key pair automatically replaces the original SSH key pair.

Request parameter

Return parameters

All are common return parameters. See common parameters.

Example

Request example

Https://ecs.aliyuncs.com/?Action=AttachKeyPair&RegionId=cn-qingdao&KeyPairName=test&InstanceIds=["i-XXXXX"]&

Return the example

XML format

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

JSON format

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

Error code

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

Thank you for reading this article carefully. I hope the editor will be helpful in sharing the method of binding a SSH key to one or more Linux instances. At the same time, I also hope that you will support it, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report