net start sshd 发生系统错误1069--cygwin安装过程
net start sshd
发生系统错误1069
解决方法:
services.msc调出服务,然后CYGWIN sshd服务->属性,修改账户的名字和密码(win7的登录名和密码)
可能还遇到其他一些问题,从网上转载了一些如下所示:
在安装cygwin的时候,执行ssh-host-config后显示如下:

木有后面要求输入的内容:
*** Warning: The following functions require administrator privileges!
*** 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: []
ntsec tty
*** Info: On Windows Server 2003, Windows Vista, and above, the
*** Info: SYSTEM account cannot setuid to other users -- a capability
*** Info: sshd requires. You need to have or to create a privileged
*** Info: account. This script will help you do so.
*** Info: You appear to be running Windows XP 64bit, Windows 2003 Server,
*** Info: or later. On these systems, it's not possible to use the LocalSystem
*** Info: account for services that can change the user id without an
*** Info: explicit password (such as passwordless logins [e.g. public key
*** Info: authentication] via sshd).
*** Info: If you want to enable that functionality, it's required to create
*** Info: a new account with special privileges (unless a similar account
*** Info: already exists). This account is then used to run these special
*** Info: servers.
以上内容均未出现,在执行net start sshd的时候出现以下问题:
发生系统错误 1069。
由于登录失败而无法启动服务。
-- 这是由于用户密码输入错误导致的,以后更改用户后sshd也可能发生这个问题,在 services.msc 里的登录标签里更改用户设置即可!

输入账号和密码,启动过程中报如下错误:

(一)在cygwin上面启动老是报错,说cygwin无法启动,也木有报具体什么原因,那么只有改成administrator登录,再次尝试就ok了~
如果administrator起不了,请看一下是不是22端口已经启动了,查看有木有安装过sshd服务~
很有可能是因为之前的警告信息:

还有一种情况:
换成administrator登录后,还是报错无法启动,那么去/var/log/里面查看一下sshd.log,报错信息如下:
/var/empty must be owned by root and not group or world-writable.
那么只需要执行:
chown administrator:Administrators /var/empty
再次重启sshd服务就可以正常启动~
另外还有一种情况:
如果虚拟机是部署的,就会出现以下,刚开始启动不了,再次输入cygwin的密码启动,可以启动了,但老是报以下错误:
$ ssh localhost
Administrator@localhost's password:
Last login: Thu Oct 18 18:20:00 2012 from 127.0.0.1
/bin/bash: Operation not permitted
Connection to localhost closed.
如果问题排查都没有问题,最后只能用administrator启动,再修改一下log的权限就ok了~
(二)假如说启动换成administrator后还是无法启动,那么查看一下cygwin sshd服务,看路径对不读,启动报错:
执行net start sshd【或者也可以执行cygrunsrv -S sshd(启动sshd服务)】 后会报:
发生系统错误3
这个时候真的木有招了,网上也找不到答案,但是知道思路了,就是之前安装的已经删除,注册表中保存的还是之前的信息,所以就想着删除服务:
Administrator@localhost~
$ sc delete sshd
[SC] DeleteService 成功
或者:
cygrunsrv -R sshd (删除sshd服务)
重新安装配置:
Administrator@localhost~
$ssh-host-config
这个时候就会正常显示,总共要输入的内容都在下面:
######################################################
chmod +r /etc/passwd
chmod +r /etc/group
rm -rf /var/
ssh-host-config
yes
yes
yes
ntsec tty
yes
cygwin
cygwin
yes
$password
$password
net start sshd
mkpasswd -l >/etc/passwd
mkgroup -l > /etc/group
ssh localhost
yes
$hostpassword
######################################################
注意:
若非ntsec tty格式,后面通过远程登录,可能会提示以下错误:
[Administrator@NXY-2 .ssh]$ ssh 192.168.30.204
Last login: Mon Aug 13 18:17:54 2012 from 192.168.30.172
"tty" option detected in CYGWIN environment variable.
CYGWIN=tty is no longer supported. Please remove it from your
CYGWIN environment variable and use a terminal emulator like mintty,
xterm, or rxvt.
Administrator@icbc-host-204 ~
#######################################################
########## 如何解决启动过程中乱码问题,不支持中文 ###########
#######################################################
使用ls可以正常查看中文格式的文件名,但是在执行net start sshd的时候就出现以下情况:

查看系统编码:

查看cygwin的编码:

更改一下cygwin的编码格式就ok了~

再次启动就可以正常显示了:

(三)如果通过上诉方法删除sshd服务,但是你去查看服务的时候,还是标注原来的路径,且服务被禁用,这个时候我们就可以修改注册表:
打开HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\sshd\ImagePath,编辑修改字符串的值【修改成你现在cygwin的执行程序的路径】
在服务中看到的结果如下:

诺,路径已经正确了,可以修改启动类型为自动,然后保存,但是还是报以下错误:

注意:
那个CYGWIN的变量值就是在HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\sshd\Parameters\Environment\CYGWIN
里面,若要修改直接打开修改值就ok了~
若出现以下问题,可以选择将netsec tty改成提示的mintty试试~
[Administrator@zy ~]$ ssh 172.16.1.137
Administrator@1172.16.1.137's password:
Last login: Wed Oct 17 17:25:40 2012 from 172.16.1.136
"tty" option detected in CYGWIN environment variable.
CYGWIN=tty is no longer supported. Please remove it from your
CYGWIN environment variable and use a terminal emulator like mintty,
xterm, or rxvt.
Administrator@zy ~
PS:
可以安装一个syslog软件包,然后远程登录的时候很炫的,哈哈~

net start sshd 发生系统错误1069--cygwin安装过程的更多相关文章
- cygwin安装sshd服务并实现无密码登录
http://blog.csdn.net/cybercode/article/details/7080743 这篇文章主要是为我在win7(64位)下搭建hadoop环境所准备的.首先参照在cygwi ...
- cygwin安装sshd服务(win7)Error installing a service: OpenSCManager: Win32 error 5:
Error installing a service: OpenSCManager: Win32 error 5: 出现这个问题的解决办法:win7系统管理员运行Cygwin软件 ...
- MySQL 无法启动,出现 “发生系统错误 1067。”
出现场景 使用 net start mysql 时无法启动,并出现:发生系统错误 1067. 解决过程 很多情况都可以导致该错误提示,可以先查找 "Windows 日志" : 打开 ...
- window 安装Mysql 5.6 发生系统错误 1067
问题: #安装MySQL服务:mysqld -install MySQL5 D:\Program Files\mysql_5.6.24_winx64\bin>mysqld -install My ...
- mysql安装常见问题(系统找不到指定的文件、发生系统错误 1067 进程意外终止)
在安装mysql时总是会遇到这样那样的问题,每次重新安装都会花很多时间来排查.在网上其实有很多相关的文章,但很多都只讲了方法,但没讲具体细节问题,导致无法解决问题.其实有时候知道问题的原因,但总是因为 ...
- 安装MongoDB启动时报错‘发生系统错误2’的解决办法
安装数据库mongodb启动时报"发生系统错误2". 这个问题是如果你之前已经装过一次,并且两次安装目录不同,就绝对会碰到的,因为你之前安装的路径已经在注册表中生成了,并没有随着你 ...
- 通过cygwin安装openSSH
openSSH的安装是学习hadoop必不可少的一步,如果ssh装不好,hadoop的安装会进行不下去.本人初学hadoop时发现以前安装ssh走了一些弯路,现在又有了一些认识,所以重写了这篇日志,供 ...
- mysql 发生系统错误1067的解决方法
解决方法如下: 1.先删除mysql服务 控制面板->管理工具->服务,先停止mysql服务 开始->运行->输入cmd->sc delete mysql 服务删除 2. ...
- MySQL启动错误---发生系统错误/系统找不到指定的文件。
今天启动mysql时,突然报错发生系统错误,系统找不到指定的文件.当时有点懵,安装mysql 之后,一直就没有修改过,怎么会报错呢?上网搜索了一下,重新安装一下mysql服务就可以了,现在也不知道什么 ...
随机推荐
- Python爬虫-爬取京东商品信息-按给定关键词
目的:按给定关键词爬取京东商品信息,并保存至mongodb. 字段:title.url.store.store_url.item_id.price.comments_count.comments 工具 ...
- Linux C 动态内存分配--malloc,new,free及相关内容
一.malloc()和free()的基本概念以及基本用法: 1.函数原型及说明: void *malloc(long NumBytes):该函数分配了NumBytes个字节,并返回了指向这块内存的指针 ...
- 【01】Firebug 教程
Firebug 教程 什么是 Firebug? Firebug 是一个开源的web开发工具. 现在浏览器自带firebug了. 安装 Firebug Firebug下载地址: https: ...
- 一些简单的JavaScript的方法
<script type="text/javascript"> //js跳转 function UserMouserDown() { confirm('你确定要删除吗? ...
- 大数据学习——hadoop的RPC框架
项目结构 服务端代码 test-hadoop-rpc pom.xml <?xml version="1.0" encoding="UTF-8"?> ...
- ISAPI映射路径错误,导致K3Cloud打不开。
今天一个同事说她的K3Cloud打不开,一看是页面报500错误,具体信息看图片: 问题: ISAPI配置的映射路径错了,多了个反斜线. 解决办法: 在IIS管理器中找到ISAPI筛选器,删除掉就行了.
- ajax请求数据之后在已经有的数据前面打对勾的方法
今天遇到这么一个需求: 选择一部分人,在点击确定的时候添加到对应的div中,也就是添加到对应的表单下面,当再次查询的时候需要在已经选过的人的复选框前面打伤对勾.
- HDU 5521 Meeting【最短路】
今天旁观了Angry_Newbie的模拟区域赛(2015shenyang) 倒着看最先看的M题,很明显的最短路问题,在我看懂的时候他们已经开始敲B了. 后来听说D过了很多人.. D题一看是个博弈,给了 ...
- Spring的@Autowired注解
以下内容引用自http://wiki.jikexueyuan.com/project/spring/annotation-based-configuration/spring-autowired-an ...
- ArcGIS10.x Engine直连提示连接超时ORA-12170 来自:http://www.iarcgis.com/?p=1004
导语 随着Esri大力宣传直连,用户也越来越由服务连接,改为直连,当然ArcGIS Engine开发用户也不例外. 环境 Oracle数据库,ArcGIS版本不限,不过由于9版本多以服务连接,以10版 ...