打开 ~/.ssh/config 文件,如果没有就自己创建一个。 若自己创建,需要配置权限sudo chmod 600 ~/.ssh/config
~/.ssh/config
sudo chmod 600 ~/.ssh/config
添加配置到config文件中
config
Host github.com User git IdentityFile ~/.ssh/githubKey
搞定
参考:https://stackoverflow.com/questions/3466626/how-to-permanently-add-a-private-key-with-ssh-add-on-ubuntu
一只孤独的猫咪神!喵!
posted @ 2023-01-29 15:57 孤独的猫咪神 阅读(83) 评论(0) 收藏 举报
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。