差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

下次修改
前次修改
tech:win10_sshd [2022/09/14 11:14] – 建立 jonathantech:win10_sshd [2022/09/14 19:48] (目前版本) – [下載 Win32-OpenSSH 安裝檔] jonathan
行 8: 行 8:
 </cli> 如果可以執行會出現這樣的訊息<cli> </cli> 如果可以執行會出現這樣的訊息<cli>
 Name  : OpenSSH.Client~~~~0.0.1.0 Name  : OpenSSH.Client~~~~0.0.1.0
-State : Installed+State : NotPresent
  
 Name  : OpenSSH.Server~~~~0.0.1.0 Name  : OpenSSH.Server~~~~0.0.1.0
-State : Installed+State : NotPresent
 </cli> </cli>
 +    * 如果還未安裝就執行安裝命令<cli>
 +# Install the OpenSSH Client
 +Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
 +
 +# Install the OpenSSH Server
 +Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
 +</cli>
 +
 +===== 使用 Github 下載 Win32-OpenSSH 安裝檔 =====
 +  * 進入 [[https://github.com/PowerShell/Win32-OpenSSH/releases|GitHub PowerShell/Win32-OpenSSH]] 頁面下載最新版 OpenSSH-Win64-*.msi Exp. [[https://github.com/PowerShell/Win32-OpenSSH/releases/download/v8.9.1.0p1-Beta/OpenSSH-Win64-v8.9.1.0.msi|OpenSSH-Win64-v8.9.1.0.msi]]
 +  * 產生使用者金鑰 <cli>
 +"C:\Program Files\OpenSSH\ssh-keygen.exe" -t ed25519
 +</cli>Exp.<cli>
 +C:\Users\jonathan>"C:\Program Files\OpenSSH\ssh-keygen.exe" -t ed25519
 +Generating public/private ed25519 key pair.
 +Enter file in which to save the key (C:\Users\jonathan/.ssh/id_ed25519):
 +Enter passphrase (empty for no passphrase):
 +Enter same passphrase again:
 +Your identification has been saved in C:\Users\jonathan/.ssh/id_ed25519
 +Your public key has been saved in C:\Users\jonathan/.ssh/id_ed25519.pub
 +The key fingerprint is:
 +SHA256:qb7JFIhchmeQjU+q6OSTZ3b8ZOIKI5Baobx9Qd6Xf7c iii\jonathan@200816-NB-DTI
 +The key's randomart image is:
 ++--[ED25519 256]--+
 +|  .+             |
 +|  ooo            |
 +|  o+=.           |
 +|.+.B+..  ..      |
 +|=o+ .o..So       |
 +|=oo   .o. .      |
 +|*+...ooo   . . . |
 +|.=o+o*+.    . . .|
 +|  =.o.*o       E |
 ++----[SHA256]-----+
 +</cli>
 +
  
  
行 18: 行 54:
 ===== 參考網址 ===== ===== 參考網址 =====
   * https://docs.microsoft.com/zh-tw/windows-server/administration/openssh/openssh_install_firstuse   * https://docs.microsoft.com/zh-tw/windows-server/administration/openssh/openssh_install_firstuse
 +  * https://github.com/PowerShell/Win32-OpenSSH/releases
  
 {{tag>sshd windows}} {{tag>sshd windows}}
  
  • tech/win10_sshd.1663125298.txt.gz
  • 上一次變更: 2022/09/14 11:14
  • jonathan