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

新建一个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"的解决办法