1.Download Win32 OpenSSH from Github
2.Unzip OpenSSH-Win64.zip
3.Move folder to C:\Program Files
4.Open PowerShell.exe in OpenSSH-Win64 folder
File>Open Windows Powershell>Open Windows PowerShell as administrator
5.Type "powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1" to run.
6.Type "New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH Server (sshd)'
-Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort
22" to run
7.Type "net start sshd" to run
Note:
For Windows Desktop or Server 2008
netsh advfirewall firewall add rule name=sshd dir=in action=allow protocol=TCP localport=22
沒有留言:
張貼留言