简体   繁体   English

将文件上传到github时发生错误?

[英]when upload file to github, occur error?

When I try to remotely connect github on git shell, but return this error, and I don't hnow how to handle it. 当我尝试远程连接git shell上的github,但返回此错误时,我不知道如何处理它。

C:\Users\wt> ssh –t git@github.com
ssh.exe": Could not resolve hostname \342\200\223t: no address associated with name
C:\Users\wt> ssh -t git@github.com
Warning: Permanently added 'github.com,192.30.252.128' (RSA) to the list of known hosts.
Permission denied (publickey).

Can anyone give me some advice? 谁能给我一些建议?

Thanks a lot! 非常感谢!

You need to generate your public key and add it to your github account. 您需要生成您的公钥并将其添加到您的github帐户中。 Then you need to make sure you have added your private key to your ssh. 然后,您需要确保已将私钥添加到ssh中。 This linke should help(follow each step) : https://help.github.com/articles/generating-ssh-keys/ 此链接应该有帮助(遵循每个步骤): https ://help.github.com/articles/generating-ssh-keys/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM