配置~/.ssh/config文件
ServerAliveInterval 5
Host gitee.com
AddKeysToAgent yes
IdentityFile /home/jypony/.ssh/gitee_id_rsa
Host bitbucket.org
AddKeysToAgent yes
IdentityFile /home/jypony/.ssh/viu_id_rsa
秘钥权限配置
chmod 600 id_rsa
chmod 644 id_rsa.pub
测试是否连接成功
ssh -T git@gitee.com
评论 (0)