ssh: Could not resolve hostname ssh.github.com: No address associated with hostname

在试图使用git的 “git push -u origin main” 将本地的main分支的更改推送到远程仓库操作时,出现如下图所示错误:

ssh: Could not resolve hostname ssh.github.com: No address associated with hostname
fatal: Could not read from remote repository.

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

尝试使用 “ssh -T git@github.com 来进行测试,结果如下:

ssh: Could not resolve hostname ssh.github.com: \307\353\307\363\265\304\303\373\263\306\323\320\320\247\243\254\265\253\312\307\325\322\262\273\265\275\307\353\307\363\265\304\300\340\320\315\265\304\312\375\276\335\241\243

由于服务器部署了ssh密钥,不太希望重新生成sshKey,所以暂时将url设置为了https://github.com/xx来进行代码上传,问题 (暂时) 解决。