github生成SSH公鑰

2022-05-30 18:36:11 字數 718 閱讀 4975

ssh-keygen -t rsa -c "[email protected]

然後輸入github上的密碼

enter passphrase (empty for no passphrase): [type a passphrase] 

enter same passphrase again: [type passphrase again]

這個時候輸入你在github上設定的密碼

然後在c:\users\user\.ssh找到id_rsa.pub,用記事本開啟,把裡面的內容複製到github賬戶設定裡面的key裡,

再使用下面的命令測試是否成功

ssh -t [email protected]

the authenticity of host 'github.com (207.97.227.239)' can't be established. 

rsa key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. 

are you sure you want to continue connecting (yes/no)?

看到這個內容,說明就成功了。

hi username! 

you've successfully authenticated, but github does not provide shell access.

github 生成 新增SSH公鑰

生成 新增ssh公鑰 你可以按如下命令來生成 sshkey 你自己的郵箱 ssh keygen t rsa c xx xx.com generating public private rsa key pair.按照提示完成三次回車,即可生成 ssh key。通過檢視 ssh id rsa.pub 檔...

生成ssh公鑰

部分內容參考 1 在電腦桌面上右鍵,選擇git base here 2 生成ssh公鑰 ssh keygen t rsa c xx xx.com generating public private rsa key pair.三次回車即可生成 ssh key xx 是自己設定的郵箱。3 檢視當前目錄下...

github新增ssh公鑰

一 windows下生成github的ssh公鑰 1.安裝git,開啟git bash 2.鍵入命令 ssh keygen t rsa c email email.com email email.com 是github賬號 3.提醒你輸入key的名稱,輸入如id rsa 4.在c documents...