mac os x / github /多个公钥? [英] mac os x / github / multiple public keys?

查看:98
本文介绍了mac os x / github /多个公钥?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能拥有多个公钥文件?如果是这样,是否有人可以提供教学链接或快速操作方法?我搜索了一下,但找不到我要找的东西,所以现在我想我不能做到这一点? 解决方案

git只是使用SSH,所以这里的诀窍就是配置 SSH 来做你想做的事情。

正如它发生,这是如下所述,通过设置一个ssh配置文件来简化: http://lookherefirst.wordpress.com/2007/12/17/a-simple-ssh-config-file/



您可能会想为每个你想使用的公钥/私钥对设置一个不同的主机,因此,你的git仓库对每一个都有一个上游。
(不同的是,不同的主机条目解析为相同的主机名。)


Is it possible to have multiple public key files? If so, is there someone that can provide an instructional link or a quick how-to? I googled, but can't find what I'm looking for, so now I'm thinking I can't do it?

解决方案

git just uses SSH, so the trick here is to configure SSH into doing what you want.

As it happens, this is trivial by setting up an ssh config file, as described here: http://lookherefirst.wordpress.com/2007/12/17/a-simple-ssh-config-file/

You'll likely want to set up a different "Host" for each public/private key pair you want to use, and therefore, your git repo will have an upstream for each of those. (It doesn't matter that the different "Host" entries resolve to the same "Hostname".)

这篇关于mac os x / github /多个公钥?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆