Windows Ssh Service Settings
1.Installation of the feature The first thing we’ll check is to check if the ssh server is installed in the machine we want to connect to.
Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH\*' In case we have the feature we will install it:
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 By default the service will be stopped so we take it off:
We can set it to automatically boot when you restart the computer:
#2. Connect us using key pair