Saturday, July 17, 2021

Windows 10 SSH Server (Dead To Me)

First PC was flawless but as usual this can be a pain . . . second machine did not accept password. Can't find a fix but . . . 
Good new is on Windows there are so many easy file sharing options you do not need a local Windows SSH Server.

Add the feature then start the service and set a firewall rule.

win+i > apps > apps&features > optional features > openssh server

Open Powershell command as Administrator
Type the following command to start the Service of the OpenSSH Server
Start-service sshd

I would leave as default service manual start but you can . . .
Type the following command to add Automatic Startup in Service
Set-Service -Name sshd -StartupType 'Automatic'

Type the following command to find the Rule for OpenSSH Server in Windows Firewall and verify that is Allow

Get-NetFirewallRule -Name *ssh*

I think this happens when ssh server is installed.
win > firewall & network protection > advanced settings

inbound rules > new rule > 
name = OpenSSH SSH Server (sshd)
description = Inbound rule for OpenSSH SSH Server (sshd)
Enabled
Allow the connection
Properties further allows settings restrictions but on a local network for simple files transfers and manual server on/off probably not needed

Curl, Wget, Winget & Powershell Install or Download Commands

After the mess I made in previous posts this summary might be useful.     Thanks PatchMyPC, the great and powerful program downloader and up...