0

When I am trying to generate SSH key in git bash, I can't get git agent when we run this command

eval $(ssh-agent -s)

then I will get this error

unix_listener: cannot listen on path /tmp/ssh-xoEnzGUu8XxU/agent.1287: Permission denied

How can I resolve this?

Roberto Caboni
  • 7,252
  • 10
  • 25
  • 39

1 Answers1

0

As seen here, that could be a permission issue for writing the SSH socket.
Check the permission associated to /tmp or /tmp/ssh-xoEnzGUu8XxU/agent.1287

Or try:

eval $(ssh-agent -a ~/.ssh-agent.$$)

The socket will be written in your $HOME instead of /tmp: no more permission issue.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250