3.9. Q 如何在 cygwin 中运行 sshd (SSH Server)?
如下:- 设置 Windows 环境变量,添加“CYGWIN = ntsec tty”
- Config SSHD, running:
-
bash$ ssh-host-config -y
- 根据提示,输入 CYGWIN=ntsec tty
- Change permissions and ownership on some files:
-
bash$ cd /; chmod -R og-w . bash$ chmod og+w /tmp bash$ touch /var/log/sshd.log bash$ chown system:system /var/log/sshd.log /var/empty /etc/ssh_h* bash$ chmod 755 /var/empty
- start the service:
-
bash$ cygrunsrv -S sshd