0

I added a script in my .bashrc to start ssh agent, but the passphrase is asked directly after logging, so I need to have my long password with me, is it possible to adding into the script and run it automatically?

if [ -z "$SSH_AUTH_SOCK" ] ; then
 eval `ssh-agent -s`
  ssh-add
fi

James78
  • 135
  • 1
  • 2
  • 9

0 Answers0