huawei-cloud-ecs-passwordless-login
Installation
SKILL.md
Huawei Cloud ECS Passwordless Login
Overview
Configure passwordless SSH login to Huawei Cloud ECS using COC (Cloud Operations Center) with a 7-step automated workflow:
- IAM Authorization — Create the
ServiceAgencyForCOCagency for COC service and bind 4 required roles; skip entirely if agency already exists (HTTP 409) - Key Generation — Generate a local RSA 4096-bit SSH key pair
- Script Creation — Create or reuse a parameterized COC script that deploys the public key
- Script Execution — Execute the script on the target ECS via COC
- SSH Test — Verify passwordless SSH connection to the target ECS
- Persistent Connection — Establish SSH ControlMaster so the agent can continue SSH access after keys are cleaned up
- Security Cleanup — After 60 seconds, automatically remove keys from remote
authorized_keys, delete the local key pair, and clean up the COC script
Tool chain: hcloud CLI (KooCLI) + local SSH tools. Deployment is handled through COC script execution only.