多git账号ssh公钥管理方式
来源:互联网 发布:重庆行知职业技术学校 编辑:程序博客网 时间:2024/05/21 12:13
背景:
公司有两个git仓库域名地址,我有两个git账号分别去登陆,但不同git仓库连接所使用的id_rsa私钥和id_rsa.pub公钥也不一样。
解决方案:
touch ~/.ssh/configvi ~/.ssh/config
输入下面对应修改的信息:
Host realname.example.com(仓库1) HostName realname.example.com IdentityFile ~/.ssh/realname_rsa # private key for realname User remoteusernameHost realname2.example.org(仓库2) HostName realname2.example.org IdentityFile ~/.ssh/realname2_rsa User remoteusername
参考资料:
https://gist.github.com/yeungeek/596984fd9e53d6c36c0d
http://stackoverflow.com/questions/2419566/best-way-to-use-multiple-ssh-private-keys-on-one-client
0 0
- 多git账号ssh公钥管理方式
- Git多SSH账号管理
- Git多账号配置及SSH-KEY管理
- Git多账号管理
- Git Git用户ssh公钥管理
- Windows下Git多账号配置,同一电脑多个ssh-key的管理
- Windows下Git多账号配置,同一电脑多个ssh-key的管理
- Windows下Git多账号配置,同一电脑多个ssh-key的管理
- Windows下Git多账号配置,同一电脑多个ssh-key的管理
- Windows下Git多账号配置,同一电脑多个ssh-key的管理
- Windows下Git多账号配置,同一电脑多个ssh-key的管理
- Windows下Git多账号配置,同一电脑多个ssh-key的管理
- git多账号ssh-key配置
- Mac ssh 多账号登陆管理
- 「Git」多账号多SSH-KEY使用教程
- Git安装和多ssh key 管理
- 管理Git生成多个ssh key
- Git如何管理多个ssh key
- 监听短信的两种方式之广播
- the component of reactjs
- 设计模式学习之路-抽象工厂模式
- Mongodb主从仲裁安装及用户认证
- 解析Android资源文件及他们的读取方法详解
- 多git账号ssh公钥管理方式
- CountDownTimer 实现倒计时,用于短信验证
- 文字一个个出现的TextView
- linux下查看端口对应的进程
- 搜索引擎基础
- 卡尔曼滤波学习
- Java: HttpURLConnection 模拟登录方法 (带cookie 的Post/Get)_20160908_七侠镇莫尛貝
- 'libxml/tree.h' file not found 库文件没有被找到
- Linux下使用nexus搭建maven私服