各位,我在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
还请各位大神帮忙看一下,问题出在哪儿了。。。
Your deployment SSH-Key is not configured, go to GitHub to configure your deployment Key
https://help.github.com/articles/generating-ssh-keys/
Obviously the configured key directory is wrong.
You are trying this command
If the output is
Hi XXX! You've successfully authenticated, but GitHub does not provide shell access.
then there is no problem.