Just open Power Shell as a Administrator and pastle these commands, it just download and install SSH deamon on your machine:
Invoke-WebRequest https://github.com/PowerShell/Win32-OpenSSH/releases/download/0.0.24.0/OpenSSH-Win64.zip -OutFile “$env:TEMPsshd.zip” -UseBasicParsing
mkdir c:sshd
cd $env:TEMP
copy .sshd.zip c:sshd
cd c:sshd
Expand-Archive sshd.zip
cd sshd
cd OpenSSH-Win64
[Environment]::SetEnvironmentVariable(“Path”, $env:Path + “;C:sshdsshdOpenSSH-Win64”, [EnvironmentVariableTarget]::Machine)
.install-sshd.ps1
.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