List SSH algorithms supported by the client
Build a paste-ready command, then review its compatibility and effects before running it.
ssh -Q cipher | head -10read-onlyno known side effects Compatibility
LinuxVerified for Linux using posix, bash, zsh syntax.
Operational knowledgereview due 2027-01-20
Requirementssshssh must be installed and available on PATH.
Version supportssh Current supported releasesVerified for linux using posix, bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signals3des-cbcRepresentative successful output; values vary with the selected target and system state.
Known errorsssh: command not foundssh is missing or is not available on PATH.
Verifyssh -Q cipher | head -10The output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01sshCommandRuns the ssh stage of this one-liner.
02-QOptionConfigures ssh with the -Q option.
03cipherArgumentPasses cipher to ssh.
04|PipelinePasses the output on the left to the command on the right.
05headCommandRuns the head stage of this one-liner.
06-10OptionConfigures head with the -10 option.
Example input
ssh -Q cipher | head -10
Example output
3des-cbc
aes128-cbc
aes192-cbc
aes256-cbc
aes128-ctr
aes192-ctr
aes256-ctr
Illustrative output — exact values vary by system and data.
Official sources