install windows openssh

Download: https: //github.com/PowerShell/Win32-OpenSSH/releases

20191224135310-openssh.png

After extracting good open directory, execute the following command:

powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1

Set the service to start automatically and start the service:

sc config sshd start= auto
net start sshd

You can also set the service console

20191224135602-openssh-services.png

The default service port 22, you need to open.

Test collection can execute remote commands:

>ssh -p 22 administrator@远程服务器IP
administrator@远程服务器IP's password:
Microsoft Windows [版本 6.3.9600]
(c) 2013 Microsoft Corporation。保留所有权利。
administrator@iZw7c6o089km3dZ C:\Users\Administrator>dir

Guess you like

Origin www.cnblogs.com/ricolee/p/win-openssh.html