29
2023
04
10:23:14

Install Win32 OpenSSH Using MSI



推荐点击下面图片,通过本站淘宝优惠价购买:

image.png

v9.2.2.0p1-Beta

 Latest
Compare
tgauth released this 2 weeks ago
· 1 commit to L1-Prod since this release

This is a beta-release (non-production ready)

This release includes:

Footer

Prerequisites

  1. Win32-OpenSSH Github releases can be installed on Windows 7 and up.

  2. Note these considerations and project scope first.

  3. Download the latest build of OpenSSH, selecting either the 32-bit or 64-bit MSI.

Install Win32-OpenSSH using MSI

1. Run MSI Installer

The MSI must be run in any command prompt (cmd.exe & pwsh.exe both work), as it does not yet have a UI (coming soon).
The MSI will install OpenSSH to the ProgramFiles\OpenSSH folder.
The commands to run, are as follows:

  • To install both the SSH Client & the SSH Server (default behavior)
    msiexec /i <path to openssh.msi>

  • To install only the SSH Client
    msiexec /i <path to openssh.msi> ADDLOCAL=Client

  • To install only the SSH Server
    msiexec /i <path to openssh.msi> ADDLOCAL=Server

  • To uninstall only the SSH Client
    msiexec /i <path to openssh.msi> REMOVE=Client

  • To uninstall only the SSH Server
    msiexec /i <path to openssh.msi> REMOVE=Server

Examples:

  • Installing SSH Client & openssh.msi is in the working directory:
    msiexec /i openssh.msi ADDLOCAL=Client

  • Installing SSH Server & openssh.msi is in C:\users\public\downloads:
    msiexec /i C:\users\public\downloads\openssh.msi ADDLOCAL=Server

  • Uninstalling SSH Client & openssh.msi is in the working directory:
    msiexec /i openssh.msi REMOVE=Client

  • Uninstalling SSH Server & openssh.msi is in C:\users\public\downloads:
    msiexec /i C:\users\public\downloads\openssh.msi REMOVE=Server

2. Update SYSTEM PATH (Required for SCP and SFTP)

Append the Win32-OpenSSH install directory to the system path, by running the following command in an elevated PowerShell session:
[Environment]::SetEnvironmentVariable("Path", [Environment]::GetEnvironmentVariable("Path",[System.EnvironmentVariableTarget]::Machine) + ';' + ${Env:ProgramFiles} + '\OpenSSH', [System.EnvironmentVariableTarget]::Machine)

To verify that the System Path variable was modified properly, the Environment Variables can be viewed in Control Panel, under the Advanced tab.

3. Verify OpenSSH Install

Check the status of the SSH Service.
In PowerShell, run:
Get-Service -Name ssh*

Uninstall Win32-OpenSSH using MSI

Similarly, the command to uninstall Win32-OpenSSH is as follows:
msiexec /x <path to openssh.msi>

Additional Documentation on msiexec

Further information on msi command-line options can be found here

Video recording

 Meeting.with.Balu.Gajjala-20220318_145330-Meeting.Recording.mp4 

Footer


本文链接:http://www.hqyman.cn/post/4022.html 非本站原创文章欢迎转载,原创文章需保留本站地址!

分享到:





休息一下,本站随机推荐观看栏目:


« 上一篇 下一篇 »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

您的IP地址是: