git push to remote repository “Could not read from remote repository”

后端 未结 4 1079
说谎
说谎 2020-12-03 06:52

I searched for a while but I can\'t find a solution to my Problem.

I have a Server I can connect to via ssh with the username git and a local git reposi

4条回答
  •  悲&欢浪女
    2020-12-03 07:16

    I personally had 2 different issues with this:

    1. plink (which is used by git on Windows) does not accept id_rsa private key as it is in OpenSSH 2 format => I had to convert it (using puttygen) to PuTTY own .ppk format and attach via Git Extensions "Remotes" dialog

    2. I specified the path to git folder wrongly, 'cause my ssh session was chrooted (It might be wrong word) and I specified that what was my FTP "root" as "/", while it was "/home/www/username/" instead.

    I understood all this, using GIT TRACE=2 as described above and also by using procmon to determine the exact command-line for plink and then playing with it, adding "-v" option ("verbose").

提交回复
热议问题