前言:
- 本文為本人整理之筆記及複習用,以避免原網站停止服務
- 本站無營利作用,如有侵權冒犯,請立即告知,會立即下架
- 請支持原出處網站,因此會將參考資料放在頁首
參考資料&來源出處:
Windows 使用 SSH 金鑰免密碼登入 Linux – MIS腳印
系統規格:
- Windows 10
建立金鑰:
執行Windows 「PowerShell」
ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (C:\Users\user/.ssh/id_rsa): # 儲存金鑰路徑和檔名,使用預設直接 Enter
Created directory 'C:\Users\user/.ssh'. # 產生 .ssh 目錄
Enter passphrase (empty for no passphrase): # 不建立密碼,直接 Enter
Enter same passphrase again: # 密碼確認,直接 Enter
Your identification has been saved in C:\Users\user/.ssh/id_rsa. # Private Key 存放路徑
Your public key has been saved in C:\Users\user/.ssh/id_rsa.pub. # Public Key 存放路徑
The key fingerprint is:
SHA256:JvKz50ISX+vA4V9ZuCudr0Bf+JqY8FpmUOC59aeVj6g user@DESKTOP-HVTBOCP
The key's randomart image is:
+---[RSA 3072]----+
| . |
| . o |
| o o . |
| . .+...... |
| .=+oS.o+= |
| .o*=..+B o |
| o++=o+oo . |
| .O==+o |
| o=E.+o. |
+----[SHA256]-----+
天下風雲出我輩,一入江湖歲月催,
塵事如潮人如水,只嘆江湖幾人回。