![]() ![]() ![]() This assumes that your key is in the conventional ~/.ssh/id_rsa location. ![]() If you're using Msysgit or Cygwin you can find a good tutorial at SSH-Agent in msysgit and cygwin and bash:Īdd a file called. Do you have a ~/.ssh/id_rsa file? If you open it in a text editor, does it say it's a private key? The file ~/.ssh/id_rsa.pub looks like a public key, I'm not sure if that will work. Public vs Private KeysĪlso, whenever I use ssh-add, I always add private keys to it. If you just run ssh-agent then the agent will start, but SSH will have no idea where to find it.įrom this comment. SSH needs two things in order to use ssh-agent: an ssh-agent instance running in the background, and an environment variable set that tells SSH which socket it should use to connect to the agent (SSH_AUTH_SOCK IIRC). Why do we need to use eval instead of just ssh-agent? To automatically start ssh-agent and allow a single instance to work in multiple console windows, see Start ssh-agent on login. Could not open a connection to your authentication agent.How to run (git/ssh) authentication agent?.Git push requires username and password (contains detailed instructions on how to use ssh-agent).ssh-add complains: Could not open a connection to your authentication agent.If you're using a different shell or operating system, you might need to use a variant of the command, such as those listed in the other answers. Note that this will start the agent for msysgit Bash on Windows. You might need to start ssh-agent before you run the ssh-add command: eval `ssh-agent -s` ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |