Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

osc compute server password show-plaintext

Retrieve and decrypt the administrative password for a server.

The password is encrypted with the SSH public key injected at boot time. Provide the matching SSH private key to obtain the plaintext password.

Supports OpenSSH (BEGIN OPENSSH PRIVATE KEY), PEM RSA (BEGIN RSA PRIVATE KEY), and PKCS#8 (BEGIN PRIVATE KEY, BEGIN ENCRYPTED PRIVATE KEY) key formats. Passphrase-protected OpenSSH and PKCS#8 keys trigger an interactive prompt.

To retrieve the raw (encrypted) password instead, use osc compute server password show.

Usage: osc compute server password show-plaintext --private-key <PATH> <SERVER_ID>

Arguments:

  • <SERVER_ID> — server_id parameter for /v2.1/servers/{server_id}/os-server-password API

Options:

  • --private-key <PATH> — Path to the SSH private key used to decrypt the password. Supports OpenSSH, PEM RSA, and PKCS#8 key formats. If the key is passphrase-protected you will be prompted interactively. The key file must not be accessible by group/others (chmod 600)