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

上一篇:Android之Handler探索


下一篇:js 数组排序和算法排序