windows平台上cygwin安装配置错误总结——connect to host localhost port 22: Connection refused
2014-04-13 09:21
483 查看
问题:ssh localhost时connect to host localhost port 22: Connection refused
可能原因:防火墙或服务未成功开启
尝试:
1,命令行调用exe文件开启,又出现问题
a@a-PC ~
$ cygrunsrv.exe -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062:
▒▒▒▒▒▒δ▒▒▒▒▒▒
2,手动到管理-服务界面-cygwin服务条目启动,显示开启后又自动关闭问题
根本,重新理解学习命令行意义,而不是一味照本宣科!
实际解决:
1,查看.log文件D:\cygwin\var\log,求具体问题描述
日志文件:Privilege separation user sshd does not exist,
2,add
following line in /etc/passwd
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
3,再次启动cygwin
可能原因:防火墙或服务未成功开启
尝试:
1,命令行调用exe文件开启,又出现问题
a@a-PC ~
$ cygrunsrv.exe -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062:
▒▒▒▒▒▒δ▒▒▒▒▒▒
2,手动到管理-服务界面-cygwin服务条目启动,显示开启后又自动关闭问题
根本,重新理解学习命令行意义,而不是一味照本宣科!
实际解决:
1,查看.log文件D:\cygwin\var\log,求具体问题描述
日志文件:Privilege separation user sshd does not exist,
2,add
following line in /etc/passwd
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
3,再次启动cygwin
相关文章推荐
- Ubuntu 安装配置SSH(ssh: connect to host localhost port 22: Connection refused问题的解决)
- ubuntu安装配置ssh-connect to host localhost port 22: Connection refused
- Ubuntu 安装配置SSH(ssh: connect to host localhost port 22: Connection refused问题的解决)
- 运行Hadoop start-all.sh遇到的错误ssh: connect to host localhost port 22: Connection refused
- Ubuntu下使用ssh远程登录时出现错误提示connect to host localhost port 22:Connection refused
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- 防火墙安装ssh: connect to host localhost port 22: Connection refused 问题
- 运行Hadoop start-all.sh遇到的错误ssh: connect to host localhost port 22: Connection refused
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- 在Ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- ssh: connect to host localhost port 22: Connection refused
- ssh: connect to host localhost port 22: Connection refused 问题
- 在Ubuntu中ssh报错: connect to host localhost port 22: Connection refused 解决办法
- scp 出现 ssh : connect to host localhost port 22:Connection refused
- Ubuntu下 ssh : connect to host localhost port 22:Connection refused
- 关于Mac中ssh: connect to host localhost port 22: Connection refused
- ssh: connect to host localhost port 22: Connection refused : 通过系统日志排查问题
- github连接报"ssh: connect to host github.com port 22: Connection timed out"错误