How to remove the passphrase from a SSH key
How to remove the passphrase from a SSH key?
Use the ssh-keygen command to update the passphrase of an existing SSH key.
ssh-keygen -p -f /path/to-key-fileThe passphrase on a SSH key can be removed using the ssh-keygen command with the -p. This will interactively ask for the existing passphrase and provides the option to clear it.
# ssh-keygen -p -f /path/to/key-file
Enter old passphrase:
Key has comment 'mykey'
Enter new passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved with the new passphrase.