查看已有的ssh
ls -al ~/.ssh
生成ssh,可设置密码
ssh-keygen -t rsa -b 4096 -C "xudaolong@vip.qq.com"
添加到ssh-agent代理,检测
eval "$(ssh-agent -s)"
添加到指定的代理
$ ssh-add ~/.ssh/id_rsa
ls -al ~/.ssh
ssh-keygen -t rsa -b 4096 -C "xudaolong@vip.qq.com"
eval "$(ssh-agent -s)"
$ ssh-add ~/.ssh/id_rsa
本文标题:git SSH keys
本文链接:https://www.haomeiwen.com/subject/mfoejttx.html
网友评论