Git公钥访问被拒绝



我今天在我的Windows 7 64位机器上安装了Git。我使用git bash来设置公钥等,并按照Github帮助中的建议将信息复制到我的帐户。

现在我想在我的windows机器的cmd中使用git,而不是git bash。如果我现在输入ssh -vT git@github.com,我得到以下结果:

CMD:

OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Connecting to github.com [207.97.227.239] port 22.
debug1: Connection established.
debug1: identity file /.ssh/identity type -1
debug1: identity file /.ssh/id_rsa type -1
debug1: identity file /.ssh/id_dsa type -1
...
GIT Bash

:

OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Connecting to github.com [207.97.227.239] port 22.
debug1: Connection established.
debug1: identity file /c/Users/Mark/.ssh/identity type -1
debug1: identity file /c/Users/Mark/.ssh/id_rsa type 1
debug1: identity file /c/Users/Mark/.ssh/id_dsa type -1

在cmd上,git正在终止并出现错误消息:Permission denied (publickey)。只是想让你知道我已经把公钥复制到github了。

奇怪的事情是在我的笔记本Windows 7,但32位的工作。关于这个问题有什么线索吗?

在cmd中运行以下命令并再次尝试ssh:

set HOME=c:UsersMark

最新更新