>cd ~/.ssh/
>mkdir search_keys #名字随便定
>cd search_keys
>pwd (获取当前目录路径,如:/data/duser/.ssh/search_keys)
>ssh-keygen
输入上述路径
Generating public/private rsa key pair.
Enter file in which to save the key (/data/duser/.ssh/id_rsa): /data/duser/.ssh/search_keys/id_rsa
>ssh-agent bash
>ssh-add id_rsa
>cat id_rsa.pub 展示的就是新生成的公钥
然后把新生成的公钥放到git的ssh keys里面就可以啦