EasyDev icon indicating copy to clipboard operation
EasyDev copied to clipboard

sudo git clone ”Permission denied (publickey)“

Open ByteSecurity opened this issue 2 years ago • 0 comments

问题 sudo git clone 拉仓库的时候,会遇到tool目录 [email protected]: Permission denied (publickey). fatal: Could not read from remote repository.

解决方案 sudo ssh-add ~/.ssh/id_rsa (本地配置的私钥,并github后台添加公钥)

验证是否正确 sudo ssh -T [email protected] Hi ByteSecurity! You've successfully authenticated, but GitHub does not provide shell access.

参考 https://www.cnblogs.com/sk-3/p/12960793.html

ByteSecurity avatar Oct 20 '23 14:10 ByteSecurity