我在ssh配置文件中正确地指定了密钥文件:
$ cat ~/.ssh/config
Host <host>
IdentityFile /cygdrive/v/poma.pem
$ ssh git@<host>
PTY allocation request failed on channel 0
Welcome to GitLab, Roman!
Connection to <host> closed.
并且使用Cygwin的Git
$ which git
/usr/bin/git
$ git --version
git version 2.1.4
$ /cygdrive/c/Program\ Files\ \(x86\)/Git/bin/git.exe --version
git version 1.9.5.msysgit.1
但是当我尝试推送时,会显示一个密码提示:
$ git remote -v
origin git@<host>:poma/deploy.git (fetch)
origin git@<host>:poma/deploy.git (push)
$ git push -u origin master
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
为什么会发生这种情况?