diff --git a/content/github/authenticating-to-github/working-with-ssh-key-passphrases.md b/content/github/authenticating-to-github/working-with-ssh-key-passphrases.md index 899f0ce2b7e8..81917a1cc175 100644 --- a/content/github/authenticating-to-github/working-with-ssh-key-passphrases.md +++ b/content/github/authenticating-to-github/working-with-ssh-key-passphrases.md @@ -18,12 +18,11 @@ With SSH keys, if someone gains access to your computer, they also gain access t You can change the passphrase for an existing private key without regenerating the keypair by typing the following command: ```shell -$ ssh-keygen -p -# Start the SSH key creation process -> Enter file in which the key is (/Users/you/.ssh/id_rsa): [Hit enter] -> Key has comment '/Users/you/.ssh/id_rsa' +$ ssh-keygen -p -f ~/.ssh/id_ed25519 +> Enter old passphrase: [Type old passphrase] +> Key has comment 'your_email@example.com' > Enter new passphrase (empty for no passphrase): [Type new passphrase] -> Enter same passphrase again: [One more time for luck] +> Enter same passphrase again: [Repeat the new passphrase] > Your identification has been saved with the new passphrase. ```