SSH keys and GitHub

Change or remove your SSH key's passphrase

Set a new passphrase on your key, or remove it, without making a new key.

  1. Change it
    Terminal
    ssh-keygen -p -f ~/.ssh/id_ed25519

    To remove it, press Enter when asked for the new passphrase. Forgot the old one? You'll need a new key.

  1. Change it
    Terminal · Ubuntu / Debian
    ssh-keygen -p -f ~/.ssh/id_ed25519

    To remove it, press Enter when asked for the new passphrase. Forgot the old one? You'll need a new key.

  1. Change it
    PowerShell
    ssh-keygen -p -f "$env:USERPROFILE\.ssh\id_ed25519"

    To remove it, press Enter when asked for the new passphrase. Forgot the old one? You'll need a new key.