Win 10 內置了 ssh 功能
Binary files are location
c:\windows\system32\Openssh
Install
Get-WindowsCapability -Online | ? Name -like 'OpenSSH*'
Name : OpenSSH.Client~~~~0.0.1.0 State : Installed Name : OpenSSH.Server~~~~0.0.1.0 State : NotPresent
# Install the OpenSSH Client
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
# Install the OpenSSH Server
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
sshd
Start-Service sshd
Set-Service -Name sshd -StartupType 'Automatic'
Get-NetFirewallRule -Name *ssh*
New-NetFirewallRule -Name sshd -DisplayName 'Allow - sshd' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22
ssh-agent
powershell
Start-Service ssh-agent
Get-Service ssh-agent
Get-Service -Name ssh-agent | Set-Service -StartupType Manual