git@github.com: Permission denied (publickey)解决方法

文章讲述了在尝试使用UnifiedSKG框架微调模型时遇到的Git子模块权限问题,解决方法是生成并添加本地SSH密钥至GitHub账户,确保gitclone--recurse-submodules能正常工作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

复现 bird-sql数据集 T5 baseline时,需要使用以下命令

直接使用,报错:

$git clone --recurse-submodules git@github.com:HKUNLP/UnifiedSKG.git
Cloning into 'UnifiedSKG'...
The authenticity of host 'github.com' can't be established.

git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

原因是baseline使用 UnifiedSKG框架微调模型,UnifiedSKG库中/third_party目录下有一些子模块,git clone --recurse-submodules引入子模块,但是部分子模块需要gothub账号权鉴

解决方法:

按官网文档,先生成本地ssh私钥,然后同步到github账户公钥中,测试通过。

https://docs.github.com/zh/authentication/troubleshooting-ssh/error-permission-denied-publickey?platform=linux
​docs.github.com/zh/authentication/troubleshooting-ssh/error-permission-denied-publickey?platform=linux

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值