Gerrit - 新增您的 SSH 金鑰



您可以將 SSH 金鑰新增到 ssh-agent 的不同的平臺,進一步討論。

Linux

在 Linux 系統上使用下面的命令來新增 SSH 金鑰

cat /home/<local-user>/.ssh/id_rsa.pub

Windows

開啟 GIT GUI,轉到幫助 → 顯示 SSH 金鑰,如下圖所示。

Add SSH Key

然後,點選複製到剪貼簿按鈕,將金鑰複製到剪貼簿。

Add SSH Key

Mac

在 Mac OS X 中,您可以使用下面的命令,將 id_rsa.pub 的內容複製到剪貼簿。

$ pbcopy < ~/.ssh/id_rsa.pub
廣告
© . All rights reserved.