« Back to SSH: Frequently Asked Questions

How to remove the passphrase from a SSH key

The 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.

Other questions related to SSH

Feedback

Is the described answer not working or incorrect, got another tip or question? Share your thoughts!