I am having a server process which is using a passphrase protected SSH key. Currently I log in via SSH to give the key every time the process is restarted. I do:
eval `ssh-agent`
ssh-add mykey
# Enter passphrase
# start my server process
I'd like to change this process, so that I enter SSH passphrase only once, after the server is rebooted. Then the key would be accessible by all processes of a certain UNIX user on that server until the server is restarted again.
How could I set up such setup? Any other ideas how to make this process more smooth?
Ubuntu Server 12.04.