安装好cygwin后,开始配置ssh
参考的博客为:http://blog.youkuaiyun.com/ruby97/article/details/7423088
这里主要说说我遇到的一些问题
问题:
1. 运行cygwin会出现错误,注意黄色的warning。
解决: 以管理员身份运行cygwin。
2. 在cygwin中开始配置ssh,输入ssh-host-config
*** 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 privileged user.
解决:
a.有人给出的方法是:(http://blog.163.com/tienan_feng@126/blog/static/173379258201132021831344/)
*** Query: Do you want to use a different name? (yes/no) no
*** Query: Create new privileged user account 'cyg_server'? (yes/no) yes
b.我的做法是:继续在cygwin中输入“ssh-host-config”重写原来的配置文件,就可以了。截图如下:
3. 开启sshd服务出现问题,
解决:还是在ssh-host-config中的错误,重新配置,在Query:shold privilege separeation be used?(yes/no)那里,回答yes.
重新在服务中开启ssh,即可。
4. ssh localhost错误:connection closed by::1
解决:*** Query: Create new privileged user account 'cyg_server'? (yes/no) yes