新建一个registry,需要在客户端执行几行命令,却遇到报错:

github报"fatal: Could not read from remote repository"的解决办法

解决办法:

ssh-****** -t rsa -C "[email protected]"  # -C为github的登录邮箱

先读取id_rsa.pub的配置文件

[[email protected] istio]# cd 
[[email protected] ~]# cd .ssh
[[email protected] .ssh]# ls
authorized_keys  id_rsa  id_rsa.pub  known_hosts
[[email protected] .ssh]# pwd
/root/.ssh
[[email protected] .ssh]# cat id_rsa.pub 
ssh-rsa !!!!!隐藏了!!!!! [email protected]

再到github的registry的settings添加deploy keys即可

github报"fatal: Could not read from remote repository"的解决办法

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
  • 2021-12-05
  • 2021-04-27
  • 2021-08-24
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-20
  • 2021-04-17
  • 2021-04-08
  • 2021-12-27
相关资源
相似解决方案