Get a mirror's SSH public key
One step with GitLab. We can help you get access.
Look something up
Get a mirror's SSH public key
with GitLab
Works with AI assistants
Use GitLab: its GitLab REST Remote mirrors API lets you get a mirror's SSH public key in a single step (GET /api/v4/projects/{id}/remote_mirrors/{mirror_id}/public_key). GitLab also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- Where do I get the public key to add to my mirror's known hosts?
- What public key does a mirror use for SSH authentication?
Say it to your AI assistant
- Get the public key of mirror {mirror_id} on project {id}.
- Show the SSH key for mirror {mirror_id} of {id}.
For your developer
GET /api/v4/projects/{id}/remote_mirrors/{mirror_id}/public_key in GitLab REST Remote mirrors API. Full spec on APIs.io.