git和sshkey

安装示范:https://www.likecs.com/show-203831392.html

下载:https://gitstack.com/download/

https://www.likecs.com/show-204384288.html

 https://blog.csdn.net/weixin_47174945/article/details/121850668

SSH KEY 生成

① cd ~/.ssh/ 【如果没有对应的文件夹,则执行 mkdir ./.ssh】

② git config --global user.name "用户名"

③ git config --global user.email "邮箱地址"

④ ssh-keygen -t rsa -C "邮箱地址"

 

⑤ 查看和复制ssh key,把公钥里面的内容复制到指定的地方

cd ~/.ssh
ls

cat id_rsa.pub

 

posted on 2022-09-24 11:30  蜀山菜鸟  阅读(25)  评论(0)    收藏  举报