码迷,mamicode.com
首页 > 系统相关 > 详细

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

时间:2018-02-02 21:55:22      阅读:9774      评论:0      收藏:0      [点我收藏+]

标签:use   nbsp   alt+   问题   cal   连接   权限   network   art   

用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系统文件的权限请勿乱改。

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

标签:use   nbsp   alt+   问题   cal   连接   权限   network   art   

原文地址:http://blog.51cto.com/xiaogongju/2068322

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!