Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

克隆拉取提示错误 #19

Open
125540947 opened this issue Apr 4, 2024 · 5 comments
Open

克隆拉取提示错误 #19

125540947 opened this issue Apr 4, 2024 · 5 comments

Comments

@125540947
Copy link

Cloning into 'MagicBox'...
The authenticity of host 'github.com (20.205.243.166)' can't be established.
ECDSA key fingerprint is SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'github.com,20.205.243.166' (ECDSA) to the list of known hosts.
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

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

@srcrs
Copy link
Owner

srcrs commented Apr 4, 2024

检查下本地网络或者docker环境,我这里使用play with docker是可以正常拉取镜像的
截屏2024-04-04 23 07 46

@125540947
Copy link
Author

我两台VPS及本地电脑都拉取失败

@125540947
Copy link
Author

[root@iZ7xvj1stqc9xhxuidnxxbZ ~]# git clone [email protected]:srcrs/MagicBox.git
Cloning into 'MagicBox'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
[root@iZ7xvj1stqc9xhxuidnxxbZ ~]# 腾讯云

@srcrs
Copy link
Owner

srcrs commented Apr 4, 2024

抱歉,看错了,克隆仓库在没有密钥的情况下,需要使用http方式拉取

git clone https://github.com/srcrs/MagicBox.git

@125540947
Copy link
Author

=> [server builder 3/4] WORKDIR /src 0.1s
=> ERROR [server builder 4/4] RUN go build -ldflags "-s -w" -o ./bin/MagicBox . 270.7s
=> CANCELED [server stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates netbase && rm -rf /var/lib/apt/lists/ && apt-get autoremove -y && apt-get autoclean -y 247.3s

[server builder 4/4] RUN go build -ldflags "-s -w" -o ./bin/MagicBox .:
0.328 go: downloading github.com/tidwall/gjson v1.17.1
0.330 go: downloading github.com/DataHenHQ/useragent v0.1.0
编译出现这个

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants