欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

putty network error:Connection refused 亂碼解決方法

  發(fā)布時間:2012-10-06 11:50:47   作者:佚名   我要評論
使用putty登錄顯示network error:Connection refused使用putty登錄顯示network error:Connection refused的解決方法
putty下載地址  http://www.dbjr.com.cn/softs/2207.html
問題:
  使用putty登錄顯示network error:Connection refused使用putty登錄顯示network error:Connection refused
  在局域網(wǎng)使用putty登錄顯示network error:Connection refused

解決方法:
  1.gedit /etc/ssh/sshd_config 將PermitRootLogin的注釋取消,或者將no改為yes。(如果沒有sshd_config文件說明linux上沒有安裝SSH,使用sudo apt-get install ssh安裝之后,sshd-config文件中PermitRootLogin選項默認的是yes,新安裝的ssh不用操作下面兩部)
  2.service sshd restart
  3.setup命令進入將防火墻關(guān)閉。

問題:

  使用putty登陸之后顯示亂碼

解決方法:

  其實只需要一步即可: 在window-〉Translation中,character set 中,把Use font encoding改為UTF-8,其他不需要改動(按照方法一改動之后可能大寫字母顯示會編程亂碼)。
  ###方法一:
  打開putty主程序,選擇window-〉A(chǔ)ppearance-〉Font settings-〉Change Settings,選擇Fixedsys字體,字符集選擇CHINESE_GB2312。在window-〉A(chǔ)ppearance-〉 Translation中,Received data assumed to be in which character set 中,把Use font encoding改為UTF-8如果經(jīng)常使用,把這些設(shè)置保存在session里面。
  保存方法:再做完以上操作的同時選中以下兩項:
  在window-〉A(chǔ)ppearance-〉 Translation中,選中:TReat CJK ambiguous characters as wide和Caps Lock acts as Cyrillic switch即可。

  ###方法二:
  編輯/etc/sysconfig/i18n
  把第1句“LANG=”zh_CN.UTF-8″”改為“LANG=”zh_CN.GB18030″”,完成后保存重新登錄即可。

  ##方法三:
  打開putty,登錄成功后,在shell中輸入
  # export LC_ALL= ‘zh_CN.utf8′
  # vi ~/.bash_profile
  LANG=zh_CN.GB18030
  LANGUAGE=zh_CN.GB18030:zh_CN.GB2312:zh_CN
  export LANG LANGUAGE

相關(guān)文章

最新評論