> 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/hosting/git/generate-git-ssh-key.md).

# Generate Git SSH key

Creates the SSH key pair of the hosting account and returns the public key.

{% openapi src="<https://developers.hostinger.com/openapi/openapi.json>" path="/api/hosting/v1/accounts/{username}/git/ssh-key" method="post" %}
<https://developers.hostinger.com/openapi/openapi.json>
{% endopenapi %}
