Read a user's generated SSH key
GET/api/user_ssh_key/:name
Reports whether the named user has a generated key pair and, if so, hands back the public half plus its fingerprint so it can be registered with a git host. The private key is never returned.
Restricted to the user themselves or a holder of Manage users. The public key is not itself a secret, but which key an account authenticates with is not public information either.
Request
Responses
- 200
- 403
- 404
- 422
Successful Response
Reading another user's key requires the Manage users permission.
User not found
Validation Error