repo

ERROR cant push first repo/tried everything/help

As in tittle, i cant push my first repo to github... tried everything, but all i get is just same errors alternately again and again firstly i got: Permission denied (publickey). fatal: The remote end hung up unexpectedly i fixed it somehow than i got: error: src refspec master does not match any. fatal: The remote end hung up unexpe...

How do I clone a repo to a remote server using ssh

I have two servers, A and B. A has the repo and can ssh to B. B is a new server I want to have the repo, but cannot ssh to A. I've tried copying the repo, create a remote to push, git clone with a -u... any suggestions? ...