My team shares a user account via a non-user shell on a few systems for reasons beyond our control. We all move our passphrase protected private keys to the share'd users ~/.ssh directory. We normally login and open an ssh-agent session then ssh-add our passphrase protected keys like below. None of us like this workflow and we're trying to make it easier.Is there a way we can automatically be prompted for our passphrase when we open the shared user's shell?sudo -u shared /bin/bash# new shell openseval `ssh-agent -s`ssh-add ~/.ssh/my_username_rsa# enter passphrase and continue...
Automatically login to an ssh-agent session in a non-user shell
shell;ssh agent