SSH Public Key -> Add Key本地环境配置(1) 查看配置git config --global --li_gerrit配置ssh">
赞
踩
ls ~/ssh
(2) 密钥对重新生成步骤
在linux系统终端执行:
ssh-keygen -t rsa -C "xxx@xxx.com"
cat ~/.ssh/id_rsa.pub
Gerrit, Settings -> SSH Public Key -> Add Key
git config --global --list
(2) 添加配置
git config --global url.ssh://xxx@xxx.com:xxx/.insteadof ssh://xxx.com
(3) 删除配置
git config --global --remove-section url.ssh
(4) 重新配置
git config --global --unset url.ssh
ssh -p
ssh-keygen -t rsa
记住账号密码
scp /home/xxx/.ssh/id_rsa.pub xx@8.8.8.8:/xxx/.ssh/authorized_keys
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。