API-Dokumentation

Verbindungsinformationen

SSH/SFTP-Verbindungsdetails inkl. Hostname, Port, User, Host-Key-Fingerprint und einem ~/.ssh/config-Snippet.

Erforderlicher Scope: webspace:read

Header

Header Erforderlich Wert
Authorization Ja Bearer DEIN_API_SCHLÜSSEL

Antwort

{
  "data": {
    "host": "ws-0862c.sitequest.eu",
    "ip": "45.84.196.148",
    "port": 22,
    "username": "ws_0862c",
    "hostKeyFingerprint": "SHA256:abcd1234...",
    "sshConfigSnippet": "Host ws-0862c\n  HostName ws-0862c.sitequest.eu\n  User ws_0862c\n  Port 22\n  IdentityFile ~/.ssh/id_ed25519",
    "sshExample":  "ssh -p 22 ws_0862c@ws-0862c.sitequest.eu",
    "sftpExample": "sftp -P 22 ws_0862c@ws-0862c.sitequest.eu"
  }
}

Antwortfelder

Feld Typ Beschreibung
hostKeyFingerprint string | null SHA-256-Fingerprint live via ssh-keyscan (best-effort, kann null sein).
sshConfigSnippet string Snippet zum Einfügen in ~/.ssh/config.

Beispiel

curl https://hosting.site.quest/api/v1/webspaces/69e80ac1.../connection-info \
  -H "Authorization: Bearer sq_live_..."

MCP

Diese Aktion ist auch über das webspace_get_ssh_info MCP-Tool verfügbar.