In Ubuntu, the default behavior is that the ssh client offers all keys present in ~/.ssh/ directory and when it finds a matching key it asks for its passphrase. The key remains unlocked in memory and I need to enter the password again if I reboot.
How can I get the same behavior in Mac OS?
1 Answer
Use
ssh-addon the command line. It will keep your key(s) open until your mac goes to sleep, the screen gets locked, you logout or reboot. See
man ssh-addfor more use cases.
1