2015-07-03 190 views
2

followed the steps來配置我的git賬戶SSH密鑰。 但是我仍然沒有成功。這是一個成績單。配置的SSH密鑰對的Git但仍然不成功

[[email protected] gitRepo]$ ssh -T [email protected] 
Hi JohnDoe! You've successfully authenticated, but GitHub does not provide shell access. 
[[email protected] gitRepo]$ git remote update 
Fetching origin 
Username for 'https://github.com': 

據我瞭解的消息是響應SSH的嘗試是成功的。但是,正確設置ssh密鑰後,我不會提示輸入用戶名和密碼。

回購是正確設置/更早,因爲我可以在回購使用的用戶名和密碼訪問該帳戶的git克隆。

我很欣賞你的時間和響應解決這個問題。

回答

2

這是因爲您的遠程仍然設置爲HTTP。您需要刪除該來源並添加SSH來源以開始使用ssh。

1

SSH密鑰用於git:協議,例如, 「URL」 必須像:

[email protected]:user/repo.git 

在我看來,你想的https://協議