我昨天发了这篇文章,但我已经取得了一些进展。结果我的IP地址被服务器列入了黑名单。不过,我还是有一些麻烦。
当我运行"ssh -vvv git@gitlab.cs.myschool.edu“时,我会得到以下内容:
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /.ssh/id_rsa
debug3: no such identity: /.ssh/id_rsa: No such file or directory
debug1: Trying private key: /.ssh/id_dsa
debug3: no such identity: /.ssh/id_dsa: No such file or directory
debug1: Trying private key: /.ssh/id_ecdsa
debug3: no such identity: /.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /.ssh/id_ed25519
debug3: no such identity: /.ssh/id_ed25519: No such file or directory
debug2: we did not send a packet, disable method
debug3: authmethod_lookup keyboard-interactive(这只是一个片段,似乎是问题的根源。整个日志都在这里:http://pastebin.com/Ryx4NFwW )
据说/..ssh/id_rsa不存在,但是:
PS C:\Users\Jonathan\.ssh> ls
Directory: C:\Users\Jonathan\.ssh
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 9/10/2014 10:58 PM 67 config
-a--- 7/5/2014 10:39 PM 1675 github_rsa
-a--- 7/5/2014 10:39 PM 402 github_rsa.pub
-a--- 9/10/2014 11:14 PM 1679 id_rsa
-a--- 9/10/2014 11:14 PM 397 id_rsa.pub
-a--- 9/10/2014 10:17 PM 193 known_hosts有人有什么想法吗?
编辑:我应该注意,如果我执行"ssh -vvv -i C:\Users\Jonathan.ssh\id_rsa git@gitlab.cs.myschool.edu“,它似乎是正确的。
Edit2:我刚注意到一些更奇怪的事情。在上面我张贴的完整日志中,有以下部分:
debug3: load_hostkeys: loading entries for host "gitlab.cs.myschool.edu" from file "/.ssh/known_hosts"
debug3: load_hostkeys: found key type ECDSA in file /.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys
debug3: load_hostkeys: loading entries for host "137.30.120.92" from file "/.ssh/known_hosts"
debug3: load_hostkeys: found key type ECDSA in file /.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys
debug1: Host 'gitlab.cs.uno.edu' is known and matches the ECDSA host key.
debug1: Found key in /.ssh/known_hosts:1
debug1: ssh_ecdsa_verify: signature correct它可以从known_hosts文件中查找和读取。它位于与我的id_rsa密钥文件相同的目录中。这真是令人费解,没有任何意义:
编辑3:我还尝试在C:\Users\Jonathan.ssh\config中创建一个配置文件(以前没有),并将其放入其中:
Host gitlab.cs.uno.edu
IdentityFile C:\Users\Jonathan\.ssh\id_rsa还尝试将主机更改为uno.edu,但仍未成功。当我试图运行git克隆时,继续被拒绝访问。
发布于 2014-09-11 05:40:35
您需要确保您的%HOME%环境变量值:因为使用git打包的openssh将在%HOME%/.ssh/中搜索ssh键,这将解释您看到%HOME%是否为空的/.ssh/。
https://stackoverflow.com/questions/25779024
复制相似问题