Add SSH passphrase once
Avoid adding your passphrase multiple times by using ssh-add

Do you log onto many servers a day and are continuously entering your password over and over again?
Use the following
ssh-addYou will then be prompted to enter the passphrase for your key
Enter passphrase for /Users/yourUserName/.ssh/id_rsa:
Identity added: /Users/yourUserName/.ssh/id_rsaOnce completed when you ssh into your next server you won't be prompted to add your password again.
This of course means that anyone at your computer can now access your servers without knowing your passphrase, but I'm going to assume that you lock your computer when you leave it un-attended.
I see this as a less risky way of managing your security than entering the password multiple times and having it accidently added to a chat window or seen on a screenshare.
Do what works for you.
Need help with something similar?
Turn the rough edge into a simpler system.
I help teams with technical architecture, DevOps, CI/CD, performance, replatforming, and practical AI process improvement.
Start a conversation