Uffo
Uffo

Reputation: 10056

Git error on push

So I'm trying to push a file to GitHub and I'm getting this error:

sh-3.2# git push -u origin master
SecGenericPasswordCreate failed
Enter passphrase for key '/var/root/.ssh/id_rsa': 
Connection closed by 207.97.227.239
fatal: The remote end hung up unexpectedly

I have already setup a public key... but when I try to push, I get this error. What am I doing wrong?

Upvotes: 0

Views: 1025

Answers (1)

Mangirdas Skripka
Mangirdas Skripka

Reputation: 1647

Check following things:

  1. Do you really have permission to push (if the repository is not read only)
  2. Do you really copied the right public key to the server, there is no unnecessary spaces or newlines

Upvotes: 1

Related Questions