<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hant-TW">
	<id>https://jiva.dila.edu.tw/index.php?action=history&amp;feed=atom&amp;title=Pro_Git_4.3_%E7%94%A2%E7%94%9F_SSH_%E5%85%AC%E9%96%8B%E9%87%91%E9%91%B0</id>
	<title>Pro Git 4.3 產生 SSH 公開金鑰 - 修訂歷史</title>
	<link rel="self" type="application/atom+xml" href="https://jiva.dila.edu.tw/index.php?action=history&amp;feed=atom&amp;title=Pro_Git_4.3_%E7%94%A2%E7%94%9F_SSH_%E5%85%AC%E9%96%8B%E9%87%91%E9%91%B0"/>
	<link rel="alternate" type="text/html" href="https://jiva.dila.edu.tw/index.php?title=Pro_Git_4.3_%E7%94%A2%E7%94%9F_SSH_%E5%85%AC%E9%96%8B%E9%87%91%E9%91%B0&amp;action=history"/>
	<updated>2026-05-05T21:16:04Z</updated>
	<subtitle>本 Wiki 上此頁面的修訂歷史</subtitle>
	<generator>MediaWiki 1.39.1</generator>
	<entry>
		<id>https://jiva.dila.edu.tw/index.php?title=Pro_Git_4.3_%E7%94%A2%E7%94%9F_SSH_%E5%85%AC%E9%96%8B%E9%87%91%E9%91%B0&amp;diff=545&amp;oldid=prev</id>
		<title>imported&gt;Ray：​Pro Git 4.2 產生 SSH 公開金鑰移動到Pro Git 4.3 產生 SSH 公開金鑰</title>
		<link rel="alternate" type="text/html" href="https://jiva.dila.edu.tw/index.php?title=Pro_Git_4.3_%E7%94%A2%E7%94%9F_SSH_%E5%85%AC%E9%96%8B%E9%87%91%E9%91%B0&amp;diff=545&amp;oldid=prev"/>
		<updated>2011-05-25T08:31:39Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/index.php?title=Pro_Git_4.2_%E7%94%A2%E7%94%9F_SSH_%E5%85%AC%E9%96%8B%E9%87%91%E9%91%B0&quot; class=&quot;mw-redirect&quot; title=&quot;Pro Git 4.2 產生 SSH 公開金鑰&quot;&gt;Pro Git 4.2 產生 SSH 公開金鑰&lt;/a&gt;移動到&lt;a href=&quot;/index.php?title=Pro_Git_4.3_%E7%94%A2%E7%94%9F_SSH_%E5%85%AC%E9%96%8B%E9%87%91%E9%91%B0&quot; title=&quot;Pro Git 4.3 產生 SSH 公開金鑰&quot;&gt;Pro Git 4.3 產生 SSH 公開金鑰&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hant-TW&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上個修訂&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;於 2011年5月25日 (三) 16:31 的修訂&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;zh-Hant-TW&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;（無差異）&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>imported&gt;Ray</name></author>
	</entry>
	<entry>
		<id>https://jiva.dila.edu.tw/index.php?title=Pro_Git_4.3_%E7%94%A2%E7%94%9F_SSH_%E5%85%AC%E9%96%8B%E9%87%91%E9%91%B0&amp;diff=544&amp;oldid=prev</id>
		<title>imported&gt;Ray：​新頁面: 不管怎麼說，大多數 Git 伺服器都使用 SSH 公開金鑰來授權。為了得到授權，系統中的每個沒有公開金鑰使用者都得生成一個新的。該過程在所...</title>
		<link rel="alternate" type="text/html" href="https://jiva.dila.edu.tw/index.php?title=Pro_Git_4.3_%E7%94%A2%E7%94%9F_SSH_%E5%85%AC%E9%96%8B%E9%87%91%E9%91%B0&amp;diff=544&amp;oldid=prev"/>
		<updated>2011-05-25T08:08:09Z</updated>

		<summary type="html">&lt;p&gt;新頁面: 不管怎麼說，大多數 Git 伺服器都使用 SSH 公開金鑰來授權。為了得到授權，系統中的每個沒有公開金鑰使用者都得生成一個新的。該過程在所...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新頁面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;不管怎麼說，大多數 Git 伺服器都使用 SSH 公開金鑰來授權。為了得到授權，系統中的每個沒有公開金鑰使用者都得生成一個新的。該過程在所有作業系統上都差不多。 首先，確定一下是否已經有一個公開金鑰了。SSH 公開金鑰預設儲存在帳戶的 ~/.ssh 目錄。進入那裡並查看其內容，有沒有公開金鑰一目了然：&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;XML&amp;quot;&amp;gt;&lt;br /&gt;
$ cd ~/.ssh&lt;br /&gt;
$ ls&lt;br /&gt;
authorized_keys2  id_dsa       known_hosts&lt;br /&gt;
config            id_dsa.pub&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
關鍵是看有沒有用 檔案名 和 檔案名.pub 來命名的一對檔，這個 檔案名 通常是 id_dsa 或者 id_rsa。 .pub 檔是公開金鑰，另一個檔是私密金鑰。假如沒有這些檔（或者乾脆連 .ssh 目錄都沒有），你可以用 ssh-keygen 的程式來建立它們，該程式在 Linux/Mac 系統由 SSH 包提供， 在 Windows 上則包含在 MSysGit 包裡：&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;XML&amp;quot;&amp;gt;&lt;br /&gt;
$ ssh-keygen &lt;br /&gt;
Generating public/private rsa key pair.&lt;br /&gt;
Enter file in which to save the key (/Users/schacon/.ssh/id_rsa): &lt;br /&gt;
Enter passphrase (empty for no passphrase): &lt;br /&gt;
Enter same passphrase again: &lt;br /&gt;
Your identification has been saved in /Users/schacon/.ssh/id_rsa.&lt;br /&gt;
Your public key has been saved in /Users/schacon/.ssh/id_rsa.pub.&lt;br /&gt;
The key fingerprint is:&lt;br /&gt;
43:c5:5b:5f:b1:f1:50:43:ad:20:a6:92:6a:1f:9a:3a schacon@agadorlaptop.local&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
它先要求你確認保存公開金鑰的位置（.ssh/id_rsa），然後它會讓你重複一個密碼兩次，如果不想在使用公開金鑰的時候輸入密碼，可以留空。&lt;br /&gt;
&lt;br /&gt;
現在，所有做過這一步的用戶都得把它們的公開金鑰給你或者 Git 伺服器的管理者（假設 SSH 服務被設定為使用公開金鑰機制）。他們只需要複製 .pub 檔的內容然後以 e-email 寄送。公開金鑰的樣子大致如下：&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;XML&amp;quot;&amp;gt;&lt;br /&gt;
$ cat ~/.ssh/id_rsa.pub &lt;br /&gt;
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAklOUpkDHrfHY17SbrmTIpNLTGK9Tjom/BWDSU&lt;br /&gt;
GPl+nafzlHDTYW7hdI4yZ5ew18JH4JW9jbhUFrviQzM7xlELEVf4h9lFX5QVkbPppSwg0cda3&lt;br /&gt;
Pbv7kOdJ/MTyBlWXFCR+HAo3FXRitBqxiX1nKhXpHAZsMciLq8V6RjsNAQwdsdMFvSlVK/7XA&lt;br /&gt;
t3FaoJoAsncM1Q9x5+3V0Ww68/eIFmb1zuUFljQJKprrX88XypNDvjYNby6vw/Pb0rwert/En&lt;br /&gt;
mZ+AW4OZPnTPI89ZPmVMLuayrD2cE86Z/il8b+gw3r3+1nKatmIkjn2so1d01QraTlMqVSsbx&lt;br /&gt;
NrRFi9wrf+M7Q== schacon@agadorlaptop.local&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
關於在多個作業系統上設立相同 SSH 公開金鑰的教程，可以在 GitHub 有關 SSH 公開金鑰的嚮導中找到：http://github.com/guides/providing-your-ssh-key。&lt;/div&gt;</summary>
		<author><name>imported&gt;Ray</name></author>
	</entry>
</feed>