<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.riguz.com/index.php?action=history&amp;feed=atom&amp;title=Git%3A%E9%85%8D%E7%BD%AE%E5%A4%9A%E4%B8%AASSH%E8%AF%81%E4%B9%A6</id>
	<title>Git:配置多个SSH证书 - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.riguz.com/index.php?action=history&amp;feed=atom&amp;title=Git%3A%E9%85%8D%E7%BD%AE%E5%A4%9A%E4%B8%AASSH%E8%AF%81%E4%B9%A6"/>
	<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=Git:%E9%85%8D%E7%BD%AE%E5%A4%9A%E4%B8%AASSH%E8%AF%81%E4%B9%A6&amp;action=history"/>
	<updated>2026-06-02T20:40:03Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://wiki.riguz.com/index.php?title=Git:%E9%85%8D%E7%BD%AE%E5%A4%9A%E4%B8%AASSH%E8%AF%81%E4%B9%A6&amp;diff=2683&amp;oldid=prev</id>
		<title>Riguz：​建立內容為「为多个不同的git repository配置不同的SSH key：  ~/.ssh/config  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; Host github.com     HostName github.com     User git     Id…」的新頁面</title>
		<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=Git:%E9%85%8D%E7%BD%AE%E5%A4%9A%E4%B8%AASSH%E8%AF%81%E4%B9%A6&amp;diff=2683&amp;oldid=prev"/>
		<updated>2021-04-09T14:53:53Z</updated>

		<summary type="html">&lt;p&gt;建立內容為「为多个不同的git repository配置不同的SSH key：  ~/.ssh/config  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; Host github.com     HostName github.com     User git     Id…」的新頁面&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;为多个不同的git repository配置不同的SSH key：&lt;br /&gt;
&lt;br /&gt;
~/.ssh/config&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
Host github.com&lt;br /&gt;
    HostName github.com&lt;br /&gt;
    User git&lt;br /&gt;
    IdentityFile ~/.ssh/id_ed25519&lt;br /&gt;
&lt;br /&gt;
Host github.com-xxx&lt;br /&gt;
    HostName github.com&lt;br /&gt;
    User git&lt;br /&gt;
    IdentityFile ~/.ssh/id_rsa&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
然后需要将repository的地址进行替换：&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git remote set-url origin git@github.com-xxx:XXX/XXXX.git&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux/Unix]]&lt;/div&gt;</summary>
		<author><name>Riguz</name></author>
	</entry>
</feed>