centos ll 命令提示Input/output error

在内网一台服务器上面操作,忽然敲打一个ll命令提示Input/output error 

Lspwd常用命令都报这个错;

ssh -v [email protected]

OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017

debug1: Reading configuration data /home/common/.ssh/config

debug1: Reading configuration data /etc/ssh/ssh_config

debug1: /etc/ssh/ssh_config line 58: Applying options for *

debug1: Connecting to 192.168.1.236 [192.168.1.236] port 22.

debug1: Connection established.

debug1: identity file /home/common/.ssh/id_rsa type 1

debug1: key_load_public: No such file or directory

debug1: identity file /home/common/.ssh/id_rsa-cert type -1

debug1: key_load_public: No such file or directory

debug1: identity file /home/common/.ssh/id_dsa type -1

debug1: key_load_public: No such file or directory

debug1: identity file /home/common/.ssh/id_dsa-cert type -1

debug1: key_load_public: No such file or directory

debug1: identity file /home/common/.ssh/id_ecdsa type -1

debug1: key_load_public: No such file or directory

debug1: identity file /home/common/.ssh/id_ecdsa-cert type -1

debug1: key_load_public: No such file or directory

debug1: identity file /home/common/.ssh/id_ed25519 type -1

debug1: key_load_public: No such file or directory

debug1: identity file /home/common/.ssh/id_ed25519-cert type -1

debug1: Enabling compatibility mode for protocol 2.0

debug1: Local version string SSH-2.0-OpenSSH_7.4

ssh_exchange_identification: read: Connection reset by peer

 

提示ssh_exchange_identification: read: Connection reset by peer

df –h命令也报错不能用,reboot都报错,只好到服务器那边瞧瞧,dell屏显提示提示E1810 Hard Drive 2 fault Review&clear SEL,第二块硬盘黄灯闪着确实不正常,第一反应完蛋硬盘挂了,记得这个机器做过raid,内网机器不怕数据丢失问题,直接热插拔一下黄灯硬盘,观察一会,似乎状态正常了,似乎有一线生机还能用。

接显示器一看屏幕都是i/o error block x026160一堆错误,重启了服务器希望服务器还有救,重启以后服务器找不到系统了提示:strike F1 to retry boot.F2 for system startup  F11 for bios manager.杯具;dell 热插拔硬盘是可以自动创建raid的,再看看硬盘指示灯是正常的,至少现在不用换硬盘,按着提示进bios一阵操作没效果,依旧找不到系统,在万能的网络帮助下最后只能BIOS初始化了,在开机看到delll图标时候按着F2进入BIOS,然后把键盘三个键 大写锁(cap lock),数码锁定(Num lock),滚动锁定(Scrolock)都点亮,然后依次按着 ALT+E,ALT+F,ALT+B,按完ALT+B以后机器自动重启,即恢复了BIOS的操作;

重启以后熟悉的centos系统又出现了。

 

 

Psssh_exchange_identification: read: Connection reset by peer报错:

可能密码错误过多被服务器拒绝拉黑了,

Vim /etchosts.allow

注释掉,添加:sshdALL

重启sshd应该可以了;

 

重启服务器,rebootinit不能用时候,执行:

 

1.执行:
echo 1 > /proc/sys/kernel/sysrq
"magic SysRq key"
提供了一个通过/proc来直接给内核发送命令的方法。要启用该特性,只需在内核编译的时候启用"CONFIG_MAGIC_SYSRQ"这个选项,而一般发行版的标准内核都已经启用了。激活这个选项。


2.
需要重启的时候,只需要执行
echo b > /proc/sysrq-trigger
设备马上重启。

 

 

有时候Read from remote host 192.168.1.236: Connection reset by peer Connection to 192.168.1.236 closed.  服务器能ping通,端口也通就是上不去:

1.ssh文件权限太大:cd /var/empty

chmod -R 755 * 

2. 如果ssh client 窗口在几分钟内没有键盘操作的时候 会话就会超时断线,通过修改sshd的配置文件 能够让ssh server 发送心跳信号来维持持续链接,;

Vim /etc/ssh/sshd_config

最后添加一行 
ClientAliveInterval 60
指定了服务器端向客户端请求消息的时间间隔, 默认是0, 不发送.ClientAliveInterval 60表示每分钟发送一次, 然后客户端响应, 这样就保持长连接了 
ClientAliveCountMax 1 
表示服务器发送请求后,客户端没有响应的次数达到了一定的值,就会自动断开。


猜你喜欢

转载自blog.51cto.com/xpu2001/2319544
lL