Change SSH Key Passphrase Using MacOS

To change the SSH key passphrase using macOS, open the Terminal and enter this command:

ssh-keygen -p -f ~/.ssh/id_dsa

You have to customize the command, if your keyfile has another name or another path than ~/.ssh/id_dsa.