2

When I'm deploying my application from my server using capifony, I need to start by typping those commands for the authentication to work :

$(ssh-agent)
ssh-add

If I disconnect, I have to retype this otherwise I get the following error :

--> Updating code base with remote_cache strategy
 ** [xx :: err] Error writing to authentication socket.
 ** [xx :: err] Permission denied (publickey).
 ** [xx :: err] fatal: Could not read from remote repository.

I'mnot an expert, what does the ssh-agent and ssh-add ? How to avoid repeating this all the time ?

Thanks a lot !

Sébastien
  • 5,263
  • 11
  • 55
  • 116

2 Answers2

0

Enable ForwardAgent in your ssh configuration.

$ cat ~/.ssh/config
ForwardAgent yes

Then open a new shell to have you agent up and running.

vinni_f
  • 622
  • 3
  • 15
  • 25
0

OK, the following resolved my issue with Linux Ubuntu 15.04.

i added the follwoing two lines at the end of ~/.profile

So it becomes :

sudo nano ~/.profile

#go at the end and writeout

$(ssh-agent)
ssh-add
Sébastien
  • 5,263
  • 11
  • 55
  • 116