git 免密

vim ~/.git-credentials

https://user.name:user.password@github.com

 

##windows下

C:\Users\Administrator\.ssh

生成秘钥对(id_rsa、id_rsa.pub)放入此目录

将公钥id_rsa.pub放到目标的~/.ssh/authorized_keys文件下即可

posted @ 2020-05-28 15:33  gzdgz  阅读(94)  评论(0编辑  收藏  举报