When checking ssh to github connection with ssh -T git@github.com does git@github.com refer to github account email or do we type the command as is?

huangapple go评论57阅读模式
英文:

When checking ssh to github connection with ssh -T git@github.com does git@github.com refer to github account email or do we type the command as is?

问题

我输入如下:

ssh -T git@github.com


但我收到了:

从 GitHub IP 地址端口收到断开连接: 再见
与 IP 和端口断开连接


我已经尝试多次重新安装 Visual Studio。
英文:

I typed as is:

ssh -T git@github.com

But I get:

Received disconnect from github ip address ports: Bye Bye
Disconnected from ips and ports.

I have tried reinstalling visual studio multiple times.

答案1

得分: 2

这是运行的字面命令。如果身份验证成功,您应该会收到适当的消息。例如(使用显式的SSH密钥):

ssh -T -i ~/.ssh/github git@github.com
输入密钥“/home/match/.ssh/github”的密码: 

嗨<用户名>!您已成功进行身份验证,但GitHub不提供Shell访问。
英文:

This is the literal command to run. You should receive an appropriate message if authentication is successful. For example (using an explicit ssh key):

ssh -T -i ~/.ssh/github git@github.com
Enter passphrase for key &#39;/home/match/.ssh/github&#39;: 

Hi &lt;username&gt;! You&#39;ve successfully authenticated, but GitHub does not provide shell access.

huangapple
  • 本文由 发表于 2023年3月4日 05:16:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/75631947.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定