在内网一台服务器上面操作,忽然敲打一个ll命令提示Input/output error
Ls,pwd常用命令都报这个错;
ssh -v root@192.168.1.236
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系统又出现了。
Ps:ssh_exchange_identification: read: Connection reset by peer报错:
可能密码错误过多被服务器拒绝拉黑了,
Vim /etchosts.allow
注释掉,添加:sshd:ALL
重启sshd应该可以了;