install cygwin and ssh service on windows record

1. install ssh server(cygwin) on Windows

1) download setup-x86_64.exe on cygwin.com

2) run setup-x86_64.exe and setup as follow steps, click next until to select packages.

install cygwin

ps: if pc can not get access to internet, can chose local(you should download all instalation files to this pc)

ps: openssh default is not selected ,you should select version and bin/src file to be installed. if you want to use zip、unzip command in cygwin,you can select as same way as next:

3) finished installation

2. config ssh by cygwin on Windows

1) open cygwin terminal

2) input command: ssh-host-config

3) type yes until CYGWIN value: input netsec tty

4) input a username according to your configuration. here we use ‘cv5g1_2’

5) enter password

6) finish the configuration

3. start service of ssh

1) open cygwin terminal

2) input command : net start sshd

3) wait for successful message

4. test

find a pc and input ssh usernmame@ip ,test over

problem solution

1) if there is some error made in ssh configuration , you can use the following commands:

sc delete sshd

ssh-host-config

2) net start sshd failed check whether there is another ssh server running or check /etc/config_sshd, config “AllowUsers myusername” in the config_sshd file.

打赏一个呗

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦