Skip to Content
SeyloDocs
API referenceGit credentials

Read a host's SSH keys

GET
/api/v1/git.scanHostKeys

Connects to a git host over SSH (like ssh-keyscan) and returns its host keys as known_hosts lines with fingerprints, so a person can compare them before trusting them.

Needs git.manage, which owners and admins hold. Available to MCP clients and the assistant.

Authorization

cookieseylo_session<token>

Query Parameters

host*string

Host the credential is for, for example "gitlab.com" or "git.example.com:2222".

Match^[A-Za-z0-9.-]+(:[0-9]{1,5})?$
Length1 <= length <= 253

Response Body

Success.

application/json
  1. response
lines*array<string>
fingerprints*array<string>
Example Request
curl -X GET 'https://example.com/api/v1/git.scanHostKeys?host=string'
Example Response
{  "lines": [    "string"  ],  "fingerprints": [    "string"  ]}