ssh-keygen -p -f keyfilessh-keygen -p -f ~/.ssh/id_rsassh -i ~/.ssh/id_rsa localhost-p Requests changing the passphrase of a private key file instead of creating a new private key. The program will prompt for the file containing the private key, for the old passphrase, and twice for the new passphrase. -f filename Specifies the filename of the key file.