各位,我在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 /c/Users/Administrator/.ssh/id_rsa type 198 月 demeter identity file /c/Users/Administrator/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file 或 directory
debug1: identity file /c/Users/Administrator/ssh/id_dsa. 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 fileor directoryde .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: keyload : identity file /c/Users/Administrator/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/Adkministrator/bugs/idert : 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.
那就沒什麼問題了。