ssh由于登录失败而无法启动服务

[分析与解决]
$netstartsshd
发生系统错误1069。
由于登录失败而无法启动服务。

分析:这是由于用户密码输入错误导致的,以后更改用户后sshd也可能发生这个问题,在services.msc里的登录标签里更改用户设置即可!

cygwin ssh 由于登录失败而无法启动服务_cygwin ssh  由于登录失败而无

如果修改密码后,还是无法启动sshd服务,建议卸载该服务,删出cyg_server,sshd用户,并重新安装,同时执行/bin/sh.sh脚本,所需要的命令如下:

cygwinsshd服务

开启netstartsshd(cygrunsrv–Ssshd)

关闭netstopsshdy

安装ssh-host-config

卸载scdeletesshd(cygrunsrv–Rsshd)


更新用户信息

mkpasswd–l>/etc/passwd

mkgroup-l>/etc/group


cygwin下中文乱码处理

cygwin ssh 由于登录失败而无法启动服务_cygwin ssh  由于登录失败而无_02

cygwin ssh 由于登录失败而无法启动服务_cygwin ssh  由于登录失败而无_03

cygwin ssh 由于登录失败而无法启动服务_cygwin ssh  由于登录失败而无_04

$ssh-v-p60108admin@192.168.8.91
OpenSSH_5.3p1,OpenSSL0.9.8m25Feb2010
debug1:Readingconfigurationdata/etc/ssh_config
debug1:Connectingto192.168.8.91[192.168.8.91]port60108.
debug1:Connectionestablished.
debug1:identityfile/home/monitor/.ssh/identitytype-1
debug1:identityfile/home/monitor/.ssh/id_rsatype-1
debug1:identityfile/home/monitor/.ssh/id_dsatype-1
debug1:Remoteprotocolversion2.0,remotesoftwareversionOpenSSH_5.3
debug1:match:OpenSSH_5.3patOpenSSH*
debug1:Enablingcompatibilitymodeforprotocol2.0
debug1:LocalversionstringSSH-2.0-OpenSSH_5.3
debug1:SSH2_MSG_KEXINITsent
debug1:SSH2_MSG_KEXINITreceived
debug1:kex:server->clientaes128-ctrhmac-md5none
debug1:kex:client->serveraes128-ctrhmac-md5none
debug1:SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192)sent
debug1:expectingSSH2_MSG_KEX_DH_GEX_GROUP
debug1:SSH2_MSG_KEX_DH_GEX_INITsent
debug1:expectingSSH2_MSG_KEX_DH_GEX_REPLY
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@WARNING:REMOTEHOSTIDENTIFICATIONHASCHANGED!@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
ITISPOSSIBLETHATSOMEONEISDOINGSOMETHINGNASTY!
Someonecouldbeeavesdroppingonyourightnow(man-in-the-middleattack)!
ItisalsopossiblethattheRSAhostkeyhasjustbeenchanged.
ThefingerprintfortheRSAkeysentbytheremotehostis
16:13:90:5c:c2:9a:ed:bf:b1:e4:d6:03:0e:ed:f3:ee.
Pleasecontactyoursystemadministrator.
Addcorrecthostkeyin/home/monitor/.ssh/known_hoststogetridofthismessage.
Offendingkeyin/home/monitor/.ssh/known_hosts:1
RSAhostkeyfor[192.168.8.91]:60108haschangedandyouhaverequestedstrictchecking.
Hostkeyverificationfailed.

ssh-keygen-RHOST