Sample Header Ad - 728x90

Is there a way to list what types of key ssh-keygen supports?

8 votes
2 answers
4993 views
The man page for ssh-keygen on my system (Fedora 35) says that the following types of keys are supported: -t dsa | ecdsa | ecdsa-sk | ed25519 | ed25519-sk | rsa Specifies the type of key to create. The possible values are “dsa”, “ecdsa”, “ecdsa-sk”, “ed25519”, “ed25519-sk”, or “rsa”. Is there a way to consult this list at runtime, by passing some special flags to ssh-keygen or some other script? Or is this list of types hardcoded and only specified in this man page? The reason I ask this is that I want to teach my shell how to autocomplete the -t parameter.
Asked by hugomg (6057 rep)
Mar 10, 2022, 01:28 PM
Last activity: Feb 7, 2023, 05:35 PM