Add SSH passphrase once

Javery
Javery Owner
a man and a woman are sitting in front of a computer screen .

Do you log onto many servers a day and are continuously entering your password over and over again?

Use the following

ssh-add

You 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_rsa

Once 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.