赞
踩
If you've already generated it, you don't need to regenerate it !
else:
$ssh-keygen -t rsa -C your-email
Now the public key will be located in ~/.ssh/id_rsa.pub
$cat ~/.ssh/id_rsa.pub
• Open web of gerrit , sign in
• Click “Settings” and then “SSH Public keys”. Paste the entire contents of your ~/.ssh/id_rsa.pub into the textbox and click the “add” button.
$sudo apt-get install vim (you need know a little VIM, if not, please use gedit)
$vi ~/.ssh/config or gedit ~/.ssh/config
Paste and edit the following content:
- Host gerrit1
- HostName XXXXX
- Port 29418
- User your-gerrit-login-username
- IdentityFile ~/.ssh/id_rsa
$chmod og-rwx ~/
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。