Actions100
- Billing Actions
- DNS Actions
- Domain Actions
- Domain Forwarding Actions
- Domain WHOIS Actions
- Reach Actions
- VPS Actions
- VPS Actions Actions
- VPS Backups Actions
- VPS Data Centers Actions
- VPS Docker Manager Actions
- VPS Firewall Actions
- VPS Malware Scanner Actions
- VPS Post Install Scripts Actions
- VPS PTR Actions
- VPS Public Keys Actions
- VPS Snapshots Actions
- VPS Templates Actions
VPS Public Keys → Attach Public Key
AI-generatedOverview
This node operation attaches an existing public SSH key to a specified virtual private server (VPS) instance. It is useful for automating the process of adding SSH keys to VPS instances for secure access without manual intervention. For example, a user can attach a public key to a VPS to enable passwordless SSH login for deployment or management tasks.
Use Case Examples
- Attach a public SSH key to a VPS to enable secure, passwordless access for automated deployment scripts.
- Add a new public key to a VPS instance as part of a server setup workflow.
Properties
| Name | Meaning |
|---|---|
| Virtual Machine ID | The unique identifier of the VPS instance to which the public key will be attached. |
| Request Body | Raw JSON body for the POST request containing details of the public key attachment. |
Output
JSON
response- The API response confirming the public key attachment status or details.
Dependencies
- Requires an API key credential for Hostinger API authentication.
Troubleshooting
- Ensure the Virtual Machine ID is correct and the VPS instance exists.
- Verify the public key data in the request body is properly formatted JSON and valid.
- Check API authentication credentials are correctly configured and have necessary permissions.
- Common errors include 'Unsupported operation' if the operation name is incorrect, or HTTP errors if the VPS ID or public key is invalid.
Links
- Hostinger API - Attach Public Key - Official API documentation for attaching a public key to a VPS instance.