2015-07-03 37 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://协议