Skip to content

Commit 35c6d47

Browse files
authored
repo sync
2 parents 1cf2835 + 306b457 commit 35c6d47

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

content/github/authenticating-to-github/working-with-ssh-key-passphrases.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@ With SSH keys, if someone gains access to your computer, they also gain access t
1818
You can change the passphrase for an existing private key without regenerating the keypair by typing the following command:
1919

2020
```shell
21-
$ ssh-keygen -p
22-
# Start the SSH key creation process
23-
> Enter file in which the key is (/Users/<em>you</em>/.ssh/id_rsa): <em>[Hit enter]</em>
24-
> Key has comment '/Users/<em>you</em>/.ssh/id_rsa'
21+
$ ssh-keygen -p -f ~/.ssh/id_ed25519
22+
> Enter old passphrase: <em>[Type old passphrase]</em>
23+
> Key has comment '<em>your_email@example.com</em>'
2524
> Enter new passphrase (empty for no passphrase): <em>[Type new passphrase]</em>
26-
> Enter same passphrase again: <em>[One more time for luck]</em>
25+
> Enter same passphrase again: <em>[Repeat the new passphrase]</em>
2726
> Your identification has been saved with the new passphrase.
2827
```
2928

0 commit comments

Comments
 (0)