To change the passphrase for an SSH key using the ssh-keygen
command, you will need to follow these steps:
ssh-keygen -p -f /path/to/key
Replace /path/to/key
with the path to the SSH key file that you want to change the passphrase for.
You will be prompted to enter the current passphrase for the key. Enter the current passphrase and press Enter.
You will then be prompted to enter the new passphrase for the key. Enter the new passphrase and press Enter.
You will be prompted to re-enter the new passphrase to confirm it. Enter the passphrase again and press Enter.
The passphrase for the key will be changed.