1,生成SSH Key
① cd ~/.ssh/ 【如果没有对应的文件夹,则执行 mkdir ./.ssh】
② git config --global user.name "xb12369"
③ git config --global user.email "1234@qq.com"
④ ssh-keygen -t rsa -C "1234@qq.com"
2,报错内容(Permissions 0644 for '/root/.ssh/id_rsa' are too open.)
chmod 0600 /Users/daizhengchuan/.ssh/id_rsa
网友评论