1. 程式人生 > >Linux入門實踐筆記(五)——Win下Git配置SSH連線GitHub實現無密提交

Linux入門實踐筆記(五)——Win下Git配置SSH連線GitHub實現無密提交

#執行ssh-keygen指令生成SSH, #其中-t選項用於指定金鑰生成的演算法,此處使用RSA; #-C選項是公鑰檔案中的備註,此處使用使用者郵箱作為備註。 [email protected] MINGW64 ~/.ssh $ ssh-keygen -t rsa -C "[email protected]" Generating public/private rsa key pair. #直接回車,使用預設的金鑰檔名 Enter file in which to save the key (/c/Users/admin/.ssh/id_rsa): #直接回車,不輸入密碼 Enter passphrase (empty
for no passphrase): Enter same passphrase again: Your identification has been saved in /c/Users/admin/.ssh/id_rsa. Your public key has been saved in /c/Users/admin/.ssh/id_rsa.pub. The key fingerprint is: SHA256:l49L+DGIYWbUALe+TwllP+ITEq2X3HY7861Rrvws4uQ [email protected]com The key's randomart image is: +---[RSA 2048]----+ | ..o | | . = | | + = | | o * + . | | X S B . .| | + O O = . o | | o B = * . .| | o + *.=.= | | . o.E.=++| +----[SHA256]-----+