Skip to content

SSH

Windows

Mostly follow (but see notes): How to Set Up OpenSSH on a Windows Server [Complete Guide]

Note: The download method in the article might fail. The following is an alternative:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$client = New-Object System.Net.WebClient
$client.DownloadFile("https://github.com/PowerShell/Win32-OpenSSH/releases/download/V8.6.0.0p1-Beta/OpenSSH-Win64.zip", "<path to where you want to place it>\OpenSSH-Win64.zip")

Once everything is installed, it can be simpler to create a new user:

$Secure_String_Pwd = ConvertTo-SecureString "somepasswordstring" -AsPlainText -Force
New-LocalUser -Name "user1" -Description "Description of this account." -Password $Secure_String_Pwd
Add-LocalGroupMember -Group Administrators -Member user1

Then run:

ssh user1@13.244.117.189

And enter the password when prompted.