windows平台上cygwin安装配置错误总结——connect to host localhost port 22: Connection refused
来源:互联网 发布:南京网络电视台招聘 编辑:程序博客网 时间:2024/05/24 02:39
问题: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
0 0
- windows平台上cygwin安装配置错误总结——connect to host localhost port 22: Connection refused
- cygwin ssh: connect to host localhost port 22: Connection refused
- 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问题的解决)
- 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
- 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
- ssh: connect to host localhost port 22: Connection refused 问题
- ssh: connect to host localhost port 22: Connection refused
- Linux--ssh: connect to host localhost port 22: Connection refused
- 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
- 保护模式总结(一)——初探
- css中定位中的fixed是什么意思
- jQuery Ajax 方法调用 Asp.Net WebService 的详细例子
- 常用表单验证
- 世界真渺小
- windows平台上cygwin安装配置错误总结——connect to host localhost port 22: Connection refused
- C++ 排序函数 sort(),qsort()的用法
- Android数据库打包发布
- vim编辑的操作符号區塊選擇的按鍵意義(转自鸟哥)
- codeingtriping 1003 位图像素的颜色
- event.keyCode列表
- 打金工作室的兴衰
- 堆的建立及排序
- java TCP协议程序设计