美文网首页iOS
git clone 指定 ssh-key 文件

git clone 指定 ssh-key 文件

作者: 流星的泪痕 | 来源:发表于2022-03-09 19:25 被阅读0次

环境 & 软件

  • mac OS

问题

git clone 不是默认 ssh-key,无法克隆

解决方法

  • ssh-add命令将对应的私钥加入到缓存
// ssh-add 自定义名称

// 例子

ssh-add id_ed25519

ssh-add id_rsa

ssh-add xxx

其他

  • 查看缓存列表
ssh-add -l

相关文章

网友评论

    本文标题:git clone 指定 ssh-key 文件

    本文链接:https://www.haomeiwen.com/subject/kffxdrtx.html