Show SSH user of a web hosting package

One SSH user of a web hosting package, with its keys and how to connect.

RReadIdempotentbetaNeeds service_webhosting
Tool
manitu_webhosting_web_sshuser_geton https://mcp.manitu.de/mcp
POST
/v1/webhosting/web/sshuser/geton https://api.manitu.de
Try it
readOnlyHint truedestructiveHint falseidempotentHint trueopenWorldHint false

Returns one SSH user of a web hosting package of the manitu customer account this connection works in, by site_id and username from manitu_webhosting_web_sshuser_list: status, whether it can log in now, when it expires, shell, disk space limit, its public keys (read live from the server - with fingerprint and comment; has_options or is_valid false marks a line the customer wrote himself on the server), and connection: host, user name, SSH on port 22, public key only, and the server's host key fingerprints - what the customer's SSH client shows on the first connection must match one of them. An SSH user reaches the whole package.

site_idinteger | stringrequired

The site_id from manitu_webhosting_list - never guess one.

pattern ^[1-9][0-9]*$min 1
usernamestringrequired

The user name of the SSH user (ssh<number>) from manitu_webhosting_web_sshuser_list - never guess one.

max length 32pattern ^ssh[0-9]+$
usernamestringrequired

The user name to log in with (ssh<number>) - what the other SSH user tools take.

descriptionstring | nullrequired

What the customer wrote about it (his description), null if nothing - not its name or user name.

statusstringrequired

active, or inactive (switched off by the customer, kept for later).

One of active inactive
is_usable_nowbooleanrequired

It can log in right now: active and not expired.

expires_atstring | nullrequired

When the SSH user expires. From this moment on it can no longer be used (the moment itself is excluded); null: without end.

Format date-time
shellstring | nullrequired

The shell: bash, zsh, or git (git only - for pushing and pulling repositories).

One of bash zsh git null
quota_mbinteger | nullrequired

Disk space in MB the files it owns may take; null: no limit of its own (the package's applies).

created_atstring | nullrequired

When it was created.

Format date-time
last_login_atstring | nullrequired

Its last login, null if never.

Format date-time
ssh_key_listarray of object | nullrequired

The public keys that may log in, read live from the server (the customer may change them there himself); null if the file could not be read.

ssh_key_list[].linestringrequired

The line as it is in the file - a public key, no secret.

ssh_key_list[].algorithmstring | nullrequired

e.g. ssh-ed25519; null if the line is no key.

ssh_key_list[].commentstring | nullrequired

The comment after the key - often who it belongs to.

ssh_key_list[].fingerprint_sha256string | nullrequired

As "ssh-keygen -lf" shows it, e.g. "SHA256:...".

ssh_key_list[].has_optionsbooleanrequired

Options in front of the key (command=, from= ...) - written by the customer on the server.

ssh_key_list[].is_validbooleanrequired

A line manitu would write itself; false: kept only as long as the file is not replaced.

connectionobjectrequired
connection.hoststring | nullrequired

The host to connect to - the web server of the package.

connection.usernamestringrequired

The user name to log in with.

connection.method_listarray of objectrequired

The ways to connect: SSH on port 22.

connection.method_list[].protocolstringrequired
One of ssh
connection.method_list[].portintegerrequired
connection.method_list[].is_encryptedbooleanrequired
connection.method_list[].is_recommendedbooleanrequired
connection.authstringrequired

public_key_only: log in with a key from the user's ssh_key_list - a password does not work.

One of public_key_only
connection.host_key_listarray of objectrequired

The server's host keys - on the first connection the SSH client shows one of these fingerprints; it must match.

connection.host_key_list[].algorithmstringrequired
connection.host_key_list[].fingerprint_sha256stringrequired

As the SSH client shows it, e.g. "SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8".

One of X-API-Key, Authorization: Bearer … - never more than one in a request. More

site_idinteger | stringrequired

The site_id from manitu_webhosting_list - never guess one.

pattern ^[1-9][0-9]*$min 1
usernamestringrequired

The user name of the SSH user (ssh<number>) from manitu_webhosting_web_sshuser_list - never guess one.

max length 32pattern ^ssh[0-9]+$
usernamestringrequired

The user name to log in with (ssh<number>) - what the other SSH user tools take.

descriptionstring | nullrequired

What the customer wrote about it (his description), null if nothing - not its name or user name.

statusstringrequired

active, or inactive (switched off by the customer, kept for later).

One of active inactive
is_usable_nowbooleanrequired

It can log in right now: active and not expired.

expires_atstring | nullrequired

When the SSH user expires. From this moment on it can no longer be used (the moment itself is excluded); null: without end.

Format date-time
shellstring | nullrequired

The shell: bash, zsh, or git (git only - for pushing and pulling repositories).

One of bash zsh git null
quota_mbinteger | nullrequired

Disk space in MB the files it owns may take; null: no limit of its own (the package's applies).

created_atstring | nullrequired

When it was created.

Format date-time
last_login_atstring | nullrequired

Its last login, null if never.

Format date-time
ssh_key_listarray of object | nullrequired

The public keys that may log in, read live from the server (the customer may change them there himself); null if the file could not be read.

ssh_key_list[].linestringrequired

The line as it is in the file - a public key, no secret.

ssh_key_list[].algorithmstring | nullrequired

e.g. ssh-ed25519; null if the line is no key.

ssh_key_list[].commentstring | nullrequired

The comment after the key - often who it belongs to.

ssh_key_list[].fingerprint_sha256string | nullrequired

As "ssh-keygen -lf" shows it, e.g. "SHA256:...".

ssh_key_list[].has_optionsbooleanrequired

Options in front of the key (command=, from= ...) - written by the customer on the server.

ssh_key_list[].is_validbooleanrequired

A line manitu would write itself; false: kept only as long as the file is not replaced.

connectionobjectrequired
connection.hoststring | nullrequired

The host to connect to - the web server of the package.

connection.usernamestringrequired

The user name to log in with.

connection.method_listarray of objectrequired

The ways to connect: SSH on port 22.

connection.method_list[].protocolstringrequired
One of ssh
connection.method_list[].portintegerrequired
connection.method_list[].is_encryptedbooleanrequired
connection.method_list[].is_recommendedbooleanrequired
connection.authstringrequired

public_key_only: log in with a key from the user's ssh_key_list - a password does not work.

One of public_key_only
connection.host_key_listarray of objectrequired

The server's host keys - on the first connection the SSH client shows one of these fingerprints; it must match.

connection.host_key_list[].algorithmstringrequired
connection.host_key_list[].fingerprint_sha256stringrequired

As the SSH client shows it, e.g. "SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8".

200Success.400The request does not match the declared input schema.401No credential was presented, or it was not recognised.403The credential is not permitted to use this operation.500The server failed. Nothing about the request was wrong. Whether a change took effect is not known - check before trying it again.503The channel this operation forwards through is unavailable.