2
這是我想今天做十次都沒有成功:爲什麼我的SSH在連接到github時掛在那裏?
- 讓使用ssh-凱基的關鍵。
- 使用Gedit或Notepad ++打開〜/ .ssh/id_rsa.pub並複製內容。
- 轉到上github.com 帳戶設置
- 轉到SSH密鑰
- 點擊添加鍵按鈕。
- 給鑰匙一個標題
- 將鑰匙粘貼到鑰匙箱中。
- 保存密鑰(輸入我的github密碼進行驗證)。
然後,我在cygwin中運行'$ ssh -vT [email protected]',但它總是掛在那裏。下面是輸出:
$ ssh -vT [email protected]
OpenSSH_6.0p1, OpenSSL 1.0.1c 10 May 2012
debug1: Reading configuration data /home/eason.wu/.ssh/config
debug1: /home/eason.wu/.ssh/config line 1: Applying options for github.com
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to github.com [207.97.227.239] port 22.
debug1: Connection established.
debug1: identity file /home/eason.wu/.ssh/id_rsa type 1
debug1: identity file /home/eason.wu/.ssh/id_rsa-cert type -1
任何人不會滿足這個問題,任何解決方案可以理解
過去了呀,我沒有在一行中複製。我還創建了一個配置文件,像提到的提示,它仍然無法正常工作。在使用選項'-vvvT'後,它會拋出一條新消息,'無法加載'/home/eason.wu/.ssh/id_rsa'作爲RSA1公鑰',不確定我的密鑰是否不正確?但是我在https://help.github.com/articles/generating-ssh-keys之後生成密鑰。這很奇怪。無論如何,感謝您的回覆。 – eagles 2012-07-30 07:39:20
@EasonWu檢查你的'.ssh'保護:請參閱http://stackoverflow.com/questions/3712443/creating-ssh-keys-for-gerrit-and-hudson/3712619#3712619 – VonC 2012-07-30 07:53:40
我添加了對日誌的完全控制權用戶爲.ssh下的文件,仍然無法連接到服務器。我下載了github提供的工具,它通過SSH方式運行良好,應該有一些步驟我做錯了。感謝您的建議! – eagles 2012-07-30 09:21:21