簡體   English   中英

github在Windows上生成ssh密鑰

[英]github generate ssh key on windows

Windows 7 Ultimate,git版本1.8.0.msysgit.0

我正在按照以下說明生成ssh密鑰: https://help.github.com/articles/generating-ssh-keys : https://help.github.com/articles/generating-ssh-keys

$clip < ~/.ssh/id_rsa.pub
# Copies the contents of the id_rsa.pub file to your clipboard

The '<' operator is reserved for future use.
At line:1 char:7
+ clip < <<<<  ~/.ssh/id_rsa.pub
    + CategoryInfo          : ParserError: (<:OperatorToken) [], ParentContain
   sErrorRecordException
    + FullyQualifiedErrorId : RedirectionNotSupported

正如我在Windows的GitHub中的“ git.exe位於哪里? ”中提到的那樣,您已經為該應用程序安裝了可移植的git。

您需要打開一個bash git會話才能使用ssh命令。

這些設置允許您定義所需的外殼類型

炮彈

GH4W是Git和GitHub應用程序的沙盒安裝,它負責所有配置。 請注意,如果有的話,它不會與您現有的Git環境發生沖突。 您的計算機上將安裝兩個快捷方式,一個用於GH4W應用程序,另一個標記為“ Git Shell”。

Git Shell快捷方式將啟動您選擇的外殼,該外殼在GH4W應用程序的選項菜單中配置。 您也可以從應用程序中為任何給定的存儲庫啟動Shell。

默認情況下,這是PowerShell,但是您可以將其更改為Bash,Cmd甚至是自定義選項。

選擇Git Bash,您應該能夠執行腳本。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM