GitHub SSH 问题....添加了密钥...仍然不起作用

GitHub SSH troubles.... added the key... still doesn't work

到目前为止我完成的步骤...

  1. sudo ssh-keygen -t rsa -b 4096 -C "lock_ed_on@yahoo.com"
  1. ssh-add ~/.ssh/id_rsa
  1. cat /home/mink/.ssh/id_rsa.pub
  1. 然后我按照 Github 的说明...
git init
git add README.md
git commit -m "first commit"
  1. 我收到这条消息...
*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.
  1. 所以我配置了用户详细信息[我以为我不需要这样做,因为密钥设置????]然后我继续 GitHub 说明
git remote add origin git@github.com:navyblueyes/template-test.git
git push -u origin master
  1. 推送之后...我收到了这个问候...
mink@DESKTOP-ALARD0U:/mnt/c/Users/Micha/.LocalCode/js-exercises/--templat$ git push -u origin master
ssh: Could not resolve hostname github.com: Temporary failure in name resolution
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

我错过了什么?

So I configure the user details [I thought I didn't need to do this because of the key setup????]

这 (user.name/user.email) 与远程存储库托管服务 authentication 无关(这就是为什么使用 SSH 密钥的原因)。
它用于本地提交 authorship.

其次,ping github.com:如果不通,就是DNS解析错误
如果没有,请尝试使用 HTTPS

访问存储库进行测试
git ls-remote https://github.com/navyblueyes/template-test.git 

使用 SSH 进行同样的尝试:

git -c 'core.sshCommand="ssh -v"' ls-remote https://github.com/navyblueyes/template-test.git

最后一条命令将显示您的密钥是否实际被使用。