新建系统变量
CYGWIN=ntsec
path添加 ;c:cygwinin
之后参考http://blog.csdn.net/benkaoya/article/details/8884677
开启22端口在2008 r2 ent
netsh firewall add portopening TCP 22 MysshPort
cyg_server是一个账号,如果没有手动创建,2008默认有一些密码规则限制,可以使用如P@ssword1
不用建sshd local account
在服务里会有一个CYGWIN_sshd的服务可以启动就可以用了
ssh-keygen -t rsa
scp id_rsa.pub cyg_server@ip:/home/cyg_server/.ssh/authorized_keys
ssh cyg_server@ip
即可可信登录