VPS: enable SSH
Enables SSH/SFTP-over-WebSocket access for the VPS (idempotent). Returns the connect commands with a token on first enable.
Request
Response
Errors
An error keeps the envelope: a negative code and a message in data.
Related methods
vps_disable_sshuserDisables SSH-over-WebSocket access for the VPS (the router stops resolving the tunnel). Keeps the subdomain.
vps_enable_web_urluserGives the VPS a public https://<sub>.xuda.app URL that reverse-proxies to its web server (default port 80). Allocates a subdomain if needed.
vps_rotate_ssh_tokenuserIssues a fresh one-time SSH/SFTP-over-WebSocket bearer token for the VPS (invalidates any previous one) and returns the ready-to-paste connect commands. The server's own SSH login is still required.
vps_ssh_access_createuserCreates a new named SSH-over-WebSocket developer access, mints a one-time connection token (only its hash is stored), and returns the plaintext token and connect commands once. Optionally sets an expiry.
vps_ssh_access_deleteuserDeletes a named SSH developer access. Its token stops working immediately.
vps_ssh_access_listuserLists every SSH/SFTP-over-WebSocket developer access for a VPS: label, creation date, expiry, active or suspended status, and live online state. Read-only, owner-gated. Never returns the token itself.
38 of 61 in Applications