How to avoid repeatedly being asked for SSH passphrase
25 July 2024 (Updated 10 September 2024)
If you keep getting asked to enter your SSH passphrase when doing SSH-related things like a git pull
:
Enter passphrase for key '/Users/<account-name>/.ssh/id_ed25519':
Run the below:
eval $(ssh-agent) && ssh-add
You’ll be prompted to enter your passphrase once but not again on subsequent commands requiring SSH (not until you logout or restart your machine).
Tagged:
Unix
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment