Script to install OpenSSH, enable the service, add ssh user, setting privileges and hide it from Windows login
powershell -Command "& {Start-Process powershell -ArgumentList \"-NoProfile -ExecutionPolicy Bypass -Command `[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; ([scriptblock]::Create((Invoke-RestMethod -Uri 'https://raw.githubusercontent.com/nyok1912/win-ssh-setup/main/setup.ps1'))).Invoke('myUser', 'myPassword');`]\" -Verb RunAs}"
- Just download and run setup.bat then answer the prompts when given
setup.bat user myUser pass myPassword
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-Expression "& { $(Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/nyok1912/win-ssh-setup/main/setup.ps1') }"
Start-Process powershell -ArgumentList "-NoProfile -ExecutionPolicy Bypass -Command `[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; ([scriptblock]::Create((Invoke-RestMethod -Uri 'https://raw.githubusercontent.com/nyok1912/win-ssh-setup/main/setup.ps1'))).Invoke('myUser', 'myPassword');`]" -Verb RunAs
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; ([scriptblock]::Create((Invoke-RestMethod -Uri 'https://raw.githubusercontent.com/nyok1912/win-ssh-setup/main/setup.ps1'))).Invoke('myUser', 'myPassword');