[Windows] Windows using SSH connection

 

 

 

 

windows install OpenSSH (two kinds)

The first 

Use windows10 comes ssh client. (Win + i shortcut keys appear windows settings, application - management optional features, install openssh client.)

 

The second

1, download openSSH [cnblogs.com/GoCircle]  Windows version

GitHub download link   

2, extract to C: \ Program Files \ OpenSSH, under the proposal is in this directory

3, cmd to the lower path openSSH

Followed by the implementation

1) install sshd service

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

2) open port 22 (if you turn off the firewall in windows and configure inbound rules can not execute the following command, and more do not affect)

netsh advfirewall firewall add rule name=sshd dir=in action=allow protocol=TCP localport=22

3) Configure the boot from Kai sshd service

sc config sshd start= auto

This installation is complete, recommendations will be C: \ Program Files \ OpenSSH added to the path, so every time cut to C: \ Program Files \ OpenSSH to use ssh

4, start ssh service

net start sshd

 

 

Start ssh

net start sshd

 

Published 53 original articles · won praise 0 · Views 839

Guess you like

Origin blog.csdn.net/G971005287W/article/details/105068357