I want to have passwordless ssh to persist even after after I restart or logoff and then login. Somehow I have to run ssh-agent and use command ssh-add at login. I read here to add following lines to .bashrc:
ssh_agent="$HOME/.ssh-agent.sh" if [ -f $ssh_agent ] then source $ssh_agent > /dev/null fi
At the same time, the tutorial mentioned that
While ssh-agent is running all your processes (including your cron jobs) shouldn't need a password. However if ssh-agent dies or is killed things might go wrong since the old settings are left over.
I want a safe method which allows me to use ssh without password even after I restart/relogin. Any suggestions?