update system path instructions

Tess Gauthier 2022-05-03 12:44:41 -04:00
parent 66f4fe683c
commit d3ea713a03
1 changed files with 3 additions and 6 deletions

@ -22,13 +22,10 @@ The commands to run, are as follows:
`msiexec /i C:\users\public\downloads\openssh.msi REMOVE=Client`
## 2. Update SYSTEM PATH (Required for SCP and SFTP)
Append the Win32-OpenSSH install directory to the system path, by running one of following commands.
If using the x86 installer on a 64-bit machine:
`setx /M PATH $($Env:PATH + ';' + ${Env:ProgramFiles(x86)} + '\OpenSSH')`
All other cases:
`setx /M PATH $($Env:PATH + ';' + ${Env:ProgramFiles} + '\OpenSSH')`
Append the Win32-OpenSSH install directory to the system path, by running the following command:
`[Environment]::SetEnvironmentVariable("Path", $env:Path + ';' + ${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: