VPS: SSH Keys
List virtual machine SSH keys
Changed onRetrieve SSH public keys currently configured on a specified virtual machine.
Only keys of the root user are listed.
Use this endpoint to view SSH keys that can be used for authentication on VPS instances.
get/api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys
Request
- Base URL: https://developers.hostinger.com
- URL: https://developers.hostinger.com/api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys
- Auth: HTTP bearer
Path parameters
virtualMachineIdinteger required
Example:1268054
Virtual Machine ID
Response
Success response
Example response
[
{
"key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0g... user@example.com",
"type": "ssh-rsa",
"data": "AAAAB3NzaC1yc2EAAAADAQABAAABAQC0g...",
"name": "user@example.com"
}
]Changes
- info
endpoint added
- info