论坛风格切换切换到宽版
  • 3637阅读
  • 5回复

[问题求助][CentOS] 真是诡异 SSH socket failed: Connection reset by peer [复制链接]

上一主题 下一主题
离线习惯.
 
发帖
1990
C币
-235622
威望
363
贡献值
1
银元
-3
铜钱
4376
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-05-01
昨天晚上还在用SSH呢..
今早登录serA 就 卡在这里了. 尝试过securecrt,putty.,都不行.
本机登录其他服务器是.可以的.,,郁闷的是所有ser的系统都是一模一样的健康
centos4.6


回忆了.一下昨晚的操作..安装调试 cacti 加上一个 sysl.og-ng          婚庆
其他的就什么都没动了 我没有误操作 啊 乱改权..限什么的            女人
sshd_conf 也没动

server端没.有防火墙,80 8080 3306. 等都可以照常访问 --------------彩票

cacti最后一次采集数.据是在00:30 之后数据就没有了 这个倒是奇怪,.,估计cron没运行吧,那为啥 00:30之前OK的呢.
难道给人OOXX了?。。。

而且我也尝试过换IP.再登录,,,一样不行电影
登录到se.rvB  .ssh -p 2222 -v xxxxxxx 也不行...电影


ssh -p .2222 -v xxxxxxx--- 印刷
O.penSSH_3.9p1, OpenSS.L 0.9.7a Feb 19 2003
debug1: Re.ading configuration data /etc/ssh/ssh_con.fig--- 印刷
d.ebug1: Applying options for. *域名
debug1: Connecting to   xxxxxx171 []. por.t 2222..
debug1: Connecti.on .established.电脑
deb.ug1: permanently_set_uid:. 0/0.
debug1: identi.ty file /root/..ssh/identity type -1           鲜花
debug.1: identity file /roo.t/.ssh/id_rsa type -1             汽车
debug1: identit.y .file /root/.ssh/id_dsa type -1投资
debug1: Remote protocol version 1.99, remote .softwar.e version OpenSSH_3.9p1[成人用品]
debug1: match.: OpenSSH_3.9p.1 pat OpenSSH*投资
d.ebug1: Enabling compati.bility mode for protocol 2.0<性病>
d.ebug1: Local versi.on string SSH-2.0-OpenSSH_3.9p1域名
de.bug2: fd 3 setting O._NONBLOCK          婚庆
debug1: .SSH2_MS.G_KEXINIT sent.
Read from socket failed: C.onnection reset by .peer.






--------------------.---.

还做过如下操作

#m.k.fifo /var/log/mysql.pipe             女人


#!/bin/bash

if [ ! -e /var/log/my.sql.pip.e ].
then
mkf.ifo. /var/log/mysql.pipe.
fi
while [ -e. /var/log/m.ysql.pipe ]          婚庆
do mys.ql -u haloeuser --password=haloepasswo.rd haloe < /var/log/mysql.pipe >/dev/nul.l           鲜花
done  


上面这个脚本 现在应.该是在运行的 学习

刚才google下 我猜有可能是 是上面这个操作引起 pipe broken  ..sshd无法写socked to network    美容

啊啊啊啊啊 啊 今天周末啊 周一才能去机房. xx.oo             电子



忘大大们 help~~

[ 本帖最后由 xhellfire 于 2009-7-4 10:4..5 编辑 ]              乙肝

我来回答



评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
发帖
1977
C币
-152657
威望
342
贡献值
1
银元
0
铜钱
4441
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-13
Re:[CentOS]

好像是贴错了

[ 本帖最后由 gamester88 于 2009-7-4 10:37 编辑 ]


离线免失志.
发帖
2221
C币
5540
威望
451
贡献值
0
银元
0
铜钱
5030
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-13
Re:[CentOS]
把本地的 ~/.ssh/know_hosts 删掉看看


离线blueii.
发帖
1982
C币
-152858
威望
353
贡献值
1
银元
-2
铜钱
4430
人人网人气币
0
只看该作者 地板  发表于: 2010-04-13
Re:[CentOS]


QUOTE:原帖由 connet 于 2009-7-4 21:53 发表
把本地的 ~/.ssh/know_hosts 删掉看看



不行啊 老样子

[root@ema .ssh]# rm * -f
[root@ema .ssh]# ssh -p 2222 -vvvv xx.xx.xx.xx
OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to xx,.xx.xx.xx port 2222.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.9p1
debug1: match: OpenSSH_3.9p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.9p1
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent


Read from socket failed: Connection reset by peer


发帖
1962
C币
-193675
威望
342
贡献值
1
银元
0
铜钱
4344
人人网人气币
0
只看该作者 4楼 发表于: 2010-04-13
Re:[CentOS]
[root@rs2 logs]# ssh -p 22 -v 192.168.1.143
OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 192.168.1.143 [192.168.1.143] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type 2
debug1: loaded 3 keys
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '192.168.1.143' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:3
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure.  Minor code may provide more information
Unknown code krb5 195
debug1: Unspecified GSS failure.  Minor code may provide more information
Unknown code krb5 195
debug1: Unspecified GSS failure.  Minor code may provide more information
Unknown code krb5 195
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/identity
debug1: Trying private key: /root/.ssh/id_rsa
debug1: Offering public key: /root/.ssh/id_dsa
debug1: Server accepts key: pkalg ssh-dss blen 433
debug1: read PEM private key done: type DSA
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = zh_CN.GBK
Last login: Mon Jul  6 09:41:06 2009 from 192.168.1.163


离线liuxiao30.
发帖
2037
C币
-140620
威望
363
贡献值
1
银元
-1
铜钱
4544
人人网人气币
0
只看该作者 5楼 发表于: 2010-04-13
Re:[CentOS]
服务重新启动一下

快速回复
限100 字节
如果您在写长篇帖子又不马上发表,建议存为草稿
 
上一个 下一个