ssh: Could not resolve hostname github.com: Name or service not known; fatal: The remote end hung up unexpectedly

后端 未结 7 1669
予麋鹿
予麋鹿 2020-12-12 20:10

The process of setting up a GitHub account works just fine but it doesn\'t work when I try pushing my repository to GitHub. The error message it shows is as follows:

7条回答
  •  南笙
    南笙 (楼主)
    2020-12-12 21:03

    Each of this could help

    1. Confirm if you are still connected using ssh. Type this: ssh -T git@github.com

    If you get the message that you were successfully authenticated and that github doesn't suppoet shell access then you can trying pushing your code again.

    2)Create a new ssh key, add it to github and test it using ssh -T git@github.com

提交回复
热议问题