SSH Cheat Sheet/Override accepted pubkey algorithms

Specify accepted client public key algorithms.

Section: Authentication

Override accepted pubkey algorithms

bash
bash
ssh -o PubkeyAcceptedAlgorithms=+ssh-rsa user@example.com
Explanation

Specify accepted client public key algorithms.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Authentication
Override host key algorithms
Specify accepted host key algorithms explicitly.
OpenIn sheetbashsame section
Use a specific private key
Choose a private key explicitly.
OpenIn sheetbashsame section
Restrict preferred auth methods
Control which auth methods the client attempts first.
OpenIn sheetbashsame section
Strict host key checking
Require the host key to already be known.
OpenIn sheetbashsame section
Accept new host keys automatically
Accept first-seen host keys but still protect against changed keys.
OpenIn sheetbashsame section
Use a custom known_hosts file
Store host keys in a dedicated file.
OpenIn sheetbashsame section