简体   繁体   English

Git错误权限被拒绝(公钥),无法粘贴公钥

[英]Git error Permission denied (publickey), couldn't paste publickey

Upon git pull on Mac terminal to GitHub, it returns an error showing permission denied (public key) git在Mac终端上将git拉到GitHub时,它返回一个错误, showing permission denied (public key)

I've looked through this earlier stack overflow thread but upon 我已经看过了这个较早的堆栈溢出线程,但是

cat id_rsa.pub | bcopy 

it shows no such file or directory . 它显示no such file or directory what should i do? 我该怎么办?

upon cat id_rsa.pub | bcopy cat id_rsa.pub | bcopy cat id_rsa.pub | bcopy it shows no such file or directory. cat id_rsa.pub | bcopy它显示没有这样的文件或目录。 what should i do? 我该怎么办?

  • Make sure $HOME (Linux or Mac) or %HOME% (Windows) is set. 确保设置了$HOME (Linux或Mac)或%HOME% (Windows)。
  • Generate an ssh key (that will create $HOME/.ssh/id_rsa and $HOME/.ssh/id_rsa.pub 生成一个ssh密钥(将创建$HOME/.ssh/id_rsa$HOME/.ssh/id_rsa.pub
  • Make sure your public key is registered on the remote server side. 确保您的公钥已在远程服务器端注册。

Follow for instance, depending on your remote repos server: 例如,根据您的远程存储库服务器,进行以下操作:

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

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