2010-08-17 56 views
0

我3天前試圖建立一個Git和Gitosis的,我發現一個簡單的教程Git和Gitosis的設置

nfocipher.com....

我的問題在第7步卡梅斯 - (在客戶端),當我試圖獲得gitosis-admin的克隆並進行配置。我的bash要求我輸入密碼......而且這似乎是rsa密鑰生成的問題。但是,我按照所有的步驟,直到..

我在哪裏錯了?

謝謝。

+1

總是先嚐試使用ssh -v來診斷ssh問題。當你嘗試時會發生什麼? – 2010-08-17 07:25:53

+0

它返回我發現ssh密鑰在我的電腦..在該日誌中... – oriceon 2010-08-17 07:26:41

+0

是的,正如格雷格說,我們需要更多的信息從ssh發生了什麼事情。如果我想快速猜測,我猜你會生成一個新的密鑰對和forogt來將這個新對添加到您的鑰匙串中,或者作爲〜/ .ssh/config中的IdentityFile。 它也可能是它只是要求你輸入密碼的密碼,如果你設置了密碼的話。 – signine 2010-08-17 07:27:58

回答

0
[[email protected] ~]$ ssh -v [email protected] 
OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 
debug1: Reading configuration data /etc/ssh/ssh_config 
debug1: Applying options for * 
debug1: Connecting to host [127.0.0.1] port 22. 
debug1: Connection established. 
debug1: identity file /home/git/.ssh/identity type -1 
debug1: identity file /home/git/.ssh/id_rsa type -1 
debug1: identity file /home/git/.ssh/id_dsa type -1 
debug1: loaded 3 keys 
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3 
debug1: match: OpenSSH_4.3 pat OpenSSH* 
debug1: Enabling compatibility mode for protocol 2.0 
debug1: Local version string SSH-2.0-OpenSSH_4.3 
debug1: SSH2_MSG_KEXINIT sent 
debug1: SSH2_MSG_KEXINIT received 
debug1: kex: server->client aes128-cbc hmac-md5 none 
debug1: kex: client->server aes128-cbc hmac-md5 none 
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent 
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP 
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent 
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY 
The authenticity of host 'host (127.0.0.1)' can't be established. 
RSA key fingerprint is 77:cf:f8:8a:f8:cf:0a:5f:8c:8e:06:14:04:cb:b9:d3. 
Are you sure you want to continue connecting (yes/no)? yes 
Warning: Permanently added 'host' (RSA) to the list of known hosts. 
debug1: ssh_rsa_verify: signature correct 
debug1: SSH2_MSG_NEWKEYS sent 
debug1: expecting SSH2_MSG_NEWKEYS 
debug1: SSH2_MSG_NEWKEYS received 
debug1: SSH2_MSG_SERVICE_REQUEST sent 
debug1: SSH2_MSG_SERVICE_ACCEPT received 
debug1: Authentications that can continue: publickey,gssapi-with-mic,password 
debug1: Next authentication method: gssapi-with-mic 
debug1: Unspecified GSS failure. Minor code may provide more information 
Unknown code krb5 195 

debug1: Unspecified GSS failure. Minor code may provide more information 
Unknown code krb5 195 

debug1: Unspecified GSS failure. Minor code may provide more information 
Unknown code krb5 195 

debug1: Next authentication method: publickey 
debug1: Trying private key: /home/git/.ssh/identity 
debug1: Trying private key: /home/git/.ssh/id_rsa 
debug1: Trying private key: /home/git/.ssh/id_dsa 
debug1: Next authentication method: password 
[email protected]'s password: 
+1

當你爲git生成你的RSA密鑰時(如果你確實生成了一個新密鑰),你是怎麼命名的? – signine 2010-08-17 08:26:15

+0

id_rsa.pub在教程中說過。鏈接到第一個問題發佈的教程。 – oriceon 2010-08-17 08:29:31

+0

我認爲這是在/ etc/SSH/ssh_config中的一個問題.. 這裏我: 主機* GSSAPIAuthentication是 和一些語言環境相關的環境變量 – oriceon 2010-08-17 13:57:13