SSH Keys Simplified

In this video I try to simplify ssh keys, ssh login with/without a password and ssh agent.

.bashrc

#check thats its not sftp
if [ “$SSH_TTY” ]; then
#set up ssh agent for keys.
if [ -z “$SSH_AUTH_SOCK” ] ; then
eval `ssh-agent -s`
ssh-add
fi
fi

.bash_logout

eval $(ssh-agent -k)