001. 使用ssh连接不上centos 6.5的解决方法及其解决中文乱码

1. 使用ssh连接不上centos 6.5的解决方法:

       错误显示:

              Connecting to 192.168.1.106:22...

Could not connect to '192.168.1.106' (port 22): Connection failed.

 

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

       解决方法:

              首先,CentOS上检设置:

1. 关闭防火墙

service iptables stop

chkconfig iptables off

2. 启动ssh服务

service sshd start

3.查看CentOS 的IP地址:ifconfig -a

inet addr:192.168.56.106  Bcast:192.168.56.255  Mask:255.255.255.0

2. 如何使Xshell4支持中文:

       错误显示:

              [root@localhost ~]# ls

anaconda-ks.cfg  post-install  post-install.log  ?..?. 妯℃.  瑙.?  ?剧.  ?.。  涓.浇  ?充?  妗..

       解决方法:

              1. 查看你的linux是否支持中文,否则请修改

                     [root@localhost ~]# echo $LANG

                     zh_CN.UTF-8

              2. 系统支持中文,但是Xshell4 还是显示乱码,那就是Xshll4的问题了,调整Xshell4

                     文件→属性→终端→转换(编码)默认语言调整为 UTF-8

                     [root@localhost ~]# ls

anaconda-ks.cfg  post-install  post-install.log  公共的  模板  视频  图片  文档  下载  音乐  桌面

posted on 2016-11-23 13:38  印子  阅读(1235)  评论(0编辑  收藏  举报

导航