ssh-keygen -f ~/.ssh/mykey

Category: SSH & Remote

ssh-keygen -f ~/.ssh/mykey

Generate a key pair with a specific filename

Generates an SSH key pair and saves it with a custom filename instead of the default id_rsa.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.