ssh私钥多台电脑共用
侧边栏壁纸
  • 累计撰写 49 篇文章
  • 累计收到 0 条评论

ssh私钥多台电脑共用

admin
2021-08-09 / 0 评论 / 344 阅读 / 正在检测是否收录...

配置~/.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

评论 (0)

取消