Skip to main content
Shell Users

Toggle SSH settings for a server

Asynchronous Request

POST
/servers/{serverSlug}/sshSettings
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

serverSlugstringrequired

Slug of the server

Body

application/json

The SSH Settings which will be written to the server

passwordSshAuthEnabledbooleandefault:false

Toggle whether password authentication should be allowed for SSH. Defaults to FALSE.

passwordlessSudoEnabledbooleandefault:false

Toggle whether Passwordless Sudo should be enabled. Defaults to FALSE.

sshPortintegerdefault:22

Set SSH Port. This currently does NOT change the port on your server, but only flags towards WebSSH which port it should use when connecting.

SSH settings update initiated

X-Callback-IDstringheader

CallbackID