我正试图从cygwin推进到我的git存储库,但没有成功。以前很管用的。我得到了
$ git push
ssh: Could not resolve hostname prooftheory: Name or service not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.现在,我的ssh-config文件对我来说是可读的。
-rwxrwxr--+ 1 user Tartományfelhasználók 230 Dec 10 2015 /cygdrive/c/Users/user/.ssh/config它包含了
Host phd
HostName bitbucket.org
IdentityFile ~/.ssh/id_rsa
IdentitiesOnly yes
User git
Host prooftheory
HostName bitbucket.org
IdentityFile ~/.ssh/pt_rsa
IdentitiesOnly yes
User git. .git/config除其他外,包含:
[remote "origin"]
url = ssh://git@prooftheory/gergely_/prooftheory.git
fetch = +refs/heads/*:refs/remotes/origin/*我可以平bitbucket.org。。我在这里错过了什么?
编辑
说cygwin可能从其他地方获得ssh配置信息,但不清楚如何配置git来使用~/.ssh/config。我将该配置复制到~/.ssh/ssh_config,但这没有帮助。不幸的是,ssh -vvv不编写它读取的配置文件。
发布于 2017-03-27 11:41:38
首先,我得做一个符号连接
/home/user至
/cygdrive/c/Users/user然后,如下
https://serverfault.com/questions/253313/ssh-hostname-returns-bad-owner-or-permissions-on-ssh-config
做,做
chmod 600 ~/.ssh/config它让它发挥作用。
我还是能
key_load_public: invalid format错误,但尽管如此,它现在起作用了。
https://unix.stackexchange.com/questions/354086
复制相似问题