Create a new systemd user unit, which starts ssh-agent
upon login to server. Will remain resident until the final session for the user has logged out.
-
Create
/etc/systemd/user/ssh-agent.service
. -
Run the following commands (under your user account, not
root
) to install the systemd unit and start: