Everytime my laptop connect to company's wifi, and committing/fetching something, git always pops error permission denied so I have to add the ssh key. The problem is that it doesn't effect permanently, I have to do it again everyday with the following commands:
cd ~/.ssh
ssh-add ssh_key
After this, everything works fine. Is there anyway to do it once and for all?
ssh-add
means you are usingssh-agent
. By design, it is not persistent.