Heim > Fragen und Antworten > Hauptteil
各位,我在windows7下搭建Hexo博客并部署到Github时,前面都没问题,但是执行到ssh -T git@github.com测试连接的时候,出现错误。
Administrator@WIN-E922JE0THKO MINGW64 /d/hexo
$ ssh -T -v git@github.com
OpenSSH_7.1p1, OpenSSL 1.0.2d 9 Jul 2015
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to github.com [192.30.252.131] port 22.
debug1: Connection established.
debug1: identity file /c/Users/Administrator/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/Administrator/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/Administrator/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/Administrator/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/Administrator/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/Administrator/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/Administrator/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/Administrator/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.1
ssh_exchange_identification: read: Software caused connection abort
还请各位大神帮忙看一下,问题出在哪儿了。。。
phpcn_u15822017-05-02 09:29:26
你的部署 SSH-Key 没有配置,到 GitHub 上配置你的部署 Key
https://help.github.com/articles/generating-ssh-keys/
淡淡烟草味2017-05-02 09:29:26
identity file /c/Users/Administrator/.ssh/id_dsa-cert type -1
明显配置的key 目录不对吧。
你在试一下这个命令
ssh -T git@github.com
要是输出是Hi XXX! You've successfully authenticated, but GitHub does not provide shell access.
那就没什么问题了。