SSH demon for Windows / Jak zainstalować demona SSH na Windows

Just open Power Shell as a Administrator and pastle these commands, it just download and install SSH deamon on your machine:

Invoke-WebRequest -OutFile “$env:TEMP\” -UseBasicParsing
mkdir c:\sshd
cd $env:TEMP
copy .\ c:\sshd
cd c:\sshd
cd sshd
cd OpenSSH-Win64
[Environment]::SetEnvironmentVariable(“Path”, $env:Path + “;C:\sshd\sshd\OpenSSH-Win64”, [EnvironmentVariableTarget]::Machine)
.\ssh-keygen.exe -A
.\FixHostFilePermissions.ps1 -Confirm:$false
get-service ssh*|Set-Service -StartupType “Automatic”
get-service ssh*|Start-Service
get-service ssh*

It could be used in:

  • Windows Server GUI/Core
  • Windows Nano Server
  • Windows in Container
  • Windows 7-10