git配置ssh

$ git config --global user.name "yourname"
$ git config --global user.email "youremail"
配置ssh $ ssh-keygen -t rsa -C "youremail"
$ eval `ssh-agent -s` 执行agent后才可add
$ ssh-add
ssh连接出现The authenticity of host can't be established: 原因 Permanently added '172.16.9.10' (RSA) to the list of known hosts.
解决方法:ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no

posted @ 2015-11-18 16:52  djdliu  阅读(190)  评论(0编辑  收藏  举报