cygwin 安装sshd服务

来源:互联网 发布:Java paths 类 编辑:程序博客网 时间:2024/05/20 09:26

1. 以管理员身份运行 cygwin

2.0 可能需要

cd /var

mkdir empty

chmod 777 empty

2. 执行ssh-host-config
注意以下几个问题的答案:

*** Query: Should privilege separation be used?(yes/no)yes
*** Query: Do you want to install sshd as a service?
*** Query: (Say "no" if it is already installed as a service)(yes/no) yes
*** Query: Enter the value of CYGWIN for the daemon: [] ntsectty

*** Info: This script plans to use 'cyg_server'.
*** Info: 'cyg_server' will only be used by registeredservices.
*** Query: Do you want to use a different name? (yes/no) no
*** Query: Create new privileged user account 'cyg_server'?(yes/no) no

***ERROR: There was a serious problem creating a privilegeduser.*** Query: Do you want to proceed anyway?(yes/no) yes  

*** Warning: Expected privileged user 'cyg_server' does notexist.*** Warning: Defaulting to 'SYSTEM'

3. 按照提示,以后通过:net start sshd 或者 cygrunsrv-S sshd 启动sshd服务

 
原创粉丝点击