Have bash remember your SSH private key’s password for the current session

(wow, that was a long title)

ssh-agent bash
ssh-add ~/.ssh/id_rsa

EDIT

Since I come here every day, here’s an updated version:

eval $(ssh-agent -s)
ssh-add ~/.ssh/id_ed25519

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.