Skip to main content

Remove an authorized SSH key of a user

DELETE 

/api/node/:hostname/user/:name/sshkey

Removes each line of the key with the fingerprint from ~/.ssh/authorized_keys of the user, and keeps the other lines as they are. A key that the file does not have, a user with no file, or a user that the host does not have, changes nothing. It runs on the Debian family only, and elsewhere reports skipped.

Request​

Responses​

Each target host's result, with whether it changed.