Git: How to solve Permission denied (publickey) error when using Git?

I’m on Mac Snow Leopard and I just installed git. I just tried git clone [email protected]:cakebook.git but that gives me this error: Initialized empty Git repository in `/Users/username/Documents/cakebook/.git/` Permission denied (publickey). fatal: The remote end hung up unexpectedly What am I missing? I’ve also tried doing ssh-keygen with no passphase but still same error. 58 … Read more

“UNPROTECTED PRIVATE KEY FILE!” Error using SSH into Amazon EC2 Instance (AWS)

This is probably a stupidly simple question to some 🙂 I’ve created a new linux instance on Amazon EC2, and as part of that downloaded the .pem file to allow me to SSH in. When I tried to ssh with: ssh -i myfile.pem <public dns> I got: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ … Read more

Best way to use multiple SSH private keys on one client [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 1 year ago. Improve this question I want to use multiple private keys to connect to different servers or different portions of the same server … Read more

How to specify the private SSH-key to use when executing shell command on Git?

A rather unusual situation perhaps, but I want to specify a private SSH-key to use when executing a shell (git) command from the local computer. Basically like this: git clone [email protected]:TheUser/TheProject.git -key “/home/christoffer/ssh_keys/theuser” Or even better (in Ruby): with_key(“/home/christoffer/ssh_keys/theuser”) do sh(“git clone [email protected]:TheUser/TheProject.git”) end I have seen examples of connecting to a remote server with … Read more

Could not open a connection to your authentication agent

I am running into this error of: $ git push heroku master Warning: Permanently added the RSA host key for IP address ‘50.19.85.132’ to the list of known hosts. ! Your key with fingerprint b7:fd:15:25:02:8e:5f:06:4f:1c:af:f3:f0:c3:c2:65 is not authorized to access bitstarter. I tried to add the keys and I get this error below: $ ssh-add … Read more