I am trying to push to my remote git repository that I cloned using SSH, but I can't push to it. I get the following error:
fatal: Remote end hung up unexpectedly
I have done some searching and found that most people had to do git config ssh.postBuffer 524288000, but this has not worked for me; I still get the same error.
I am running my local repository on Levinux (because my university course requires it). I generated my SSH key and added it to GitHub already. Connecting using https works, but I'd rather use SSH. Any suggestions would be great!
For me, once I got the key to show up in the Help>Show SSH Key dialog box and
ssh -T [email protected]
was working fine; however when I ran
git remote -v
I could see that the repo was cloned from the https://github.com/ URL; not ssh://[email protected]/
origin https://github.com/User/Project.git (fetch)
origin https://github.com/User/Project.git (push)
So, I had to do
git remote set-url --push origin '[email protected]:User/Project.git'
and then Git GUI and TUI were both pushing just fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With