跳转到主要内容
POST
Test an SSH connection to a machine before connecting it

授权

Authorization
string
header
必填

OIDC/JWKS bearer token. Self-hosted defaults to Pocket ID; SaaS uses Auth0 through the edge. PocketBase JWT is legacy migration compatibility only.

请求体

application/json
host
string
必填
Minimum string length: 1
user
string
必填
Minimum string length: 1
port
integer
默认值:22
必填范围: 1 <= x <= 65535
auth_method
enum<string>
默认值:ssh-key
可用选项:
ssh-key,
password
ssh_wallet_item_id
string

Wallet node access item holding the SSH key or password.

Pattern: ^itm_[a-z2-7]{26}$
ssh_key_label
string

Label of a stored SSH key; only on deployments that read the built-in wallet.

响应

Connection test result

data
object
meta
object