My server is currently running Ubuntu 20.04.4. I work in an environment where most users use their login password to encrypt their ssh keys. (Yes, I am aware this is not as secure as possible. This is the point we've chosen on the convenience/security spectrum.) I would like to configure
sshd on my server so that when users log in, it automatically launches
ssh-agent, and adds their ssh keys to
ssh-agent (as if they had typed
ssh-add just after logging in), without the user having to type their password twice when they login. Is this possible, and if so, how do I do it?
(To be clear, I want to do this so that, once a user is logged into the machine running the sshd server, they can then do passwordless ssh into other machines in the building.)