用xshell连接linux服务器出现以下错误

用XSHELL连接linux服务器出现以下错误


Connecting to 42.51.xxx.xxx:22...

Connection established.

To escape to local shell, press 'Ctrl+Alt+]'.

Socket error Event: 32 Error: 10053.

Connection closing...Socket close.

Connection closed by foreign host.

Disconnected from remote host(42.51.xxx.xxx:22) at 20:00:30.


Type `help' to learn how to use Xshell prompt.

操作:用SSH工具连接linux电脑出现的问题:Read from socket failed: Connection reset by peer

起因:改变了系统权限 chmod 777 -R 

解决办法:#chmod 400 /etc/ssh/*

重新连接 成功!!!


重启SSH

service sshd restart


注意:修改# chmod 770 /etc/ssh/ssh_host_dsa_key.pub

          # chmod 770 /etc/ssh/ssh_host_rsa_key.pub

重启网关

service network restart



忠告:linux系统文件的权限请勿乱改。


 本文转自 技术花妞妞 51CTO博客,原文链接:http://blog.51cto.com/xiaogongju/2068322



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值