Note that there are some explanatory texts on larger screens.

plurals
  1. POgit push to remote repository "Could not read from remote repository"
    text
    copied!<p>I searched for a while but I can't find a solution to my Problem.</p> <p>I have a Server I can connect to via ssh with the username <code>git</code> and a local git repository.<br> Now I want to push my local repository to a newly created one on the Server.</p> <p>Here is what I did:</p> <ul> <li>created a git repository in <code>/home/git/test.git</code></li> <li>initialized the repository as bare</li> <li>added the remote repository on the local machine<br> <code>git remote add test ssh://git@serverIp:/home/git/test.git</code></li> <li>now I executed the push command:<br> <code>git push test master</code></li> </ul> <blockquote> <p>I always get the </p> </blockquote> <pre><code>fatal: could not read from remote repository Please make sure you have the correct access rights and the repository exists. </code></pre> <p>I am working on a local windows 7 machine and want to upload to a linux server.<br> I can log in via ssh with the <code>git</code> user. I also tried to do this as the <code>root</code> user(to get things to work once) with the same result.<br> I never get asked for the ssh <code>password</code>.</p> <p>I really don't know what I am doing wrong.<br> Before you call this a duplicate, I searched a lot for this problem and none seemed to talk about the same problem.</p> <p>update: </p> <p><ul> <li>"which git" returns /usr/bin/git</li> <li>PATH echo includes /usr/bin</li> <li>id_rsa and id_rsa.pub files are all set up and withput Passphrase</li> <li>ssh git@serverIp which git-receive-pack works too and returns /usr/bin/git-receive-pack</li> <li>ssh git@serverIp ls /home/git/test.git works</li> <li>all relevant directories are chmod 755</li> <li>git is owner of the repository</li> <li>auth.log file gets no new entries on tried push command</li> <li>GIT_TRACE=2 git push test master returns:</p> <blockquote> <p>'C:\Program Files (x86)\PuTTY\plink.exe' '-batch' 'git@serverIp' 'git-receive-pack '\''/home/git/test.git'\''' fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.</li> </ul></p> </blockquote>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload