gerrit上利用sshkeygen公钥

进入你root/.ssh/目录,最好是这个目录,当然其他的目录也可以,command:ssh-keygen.

提示输入Enter file in which to save the key (/root/.ssh/id_rsa):这里输入你的公钥的文件名,然后回车,输入你的密码即可。

登录你的gerrit服务器,在你的setting界面,在ssh public key选项,删除其中内容,然后把你创建的.pub文件里的内容添加上去就可以了。

你第一此登录的时候会提示输入密码,以后就不会了。呵呵

原文地址:https://www.cnblogs.com/slider/p/2245333.html