> For the complete documentation index, see [llms.txt](https://docs.hostinger.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hostinger.com/api-reference/endpoints/vps/virtual-machine/get-attached-public-keys.md).

# Get attached public keys

Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.

{% openapi src="<https://developers.hostinger.com/openapi/openapi.json>" path="/api/vps/v1/virtual-machines/{virtualMachineId}/public-keys" method="get" %}
<https://developers.hostinger.com/openapi/openapi.json>
{% endopenapi %}
