Problem:
Use Putty to log on to display network error: Connection refused use Putty to log on to display network error: Connection refused
Use Putty to log on to the LAN and display network error: Connection refused.
Solution:
1. gedit/etc/ssh/sshd_config uncomment permitrootlogin or change no to yes. (If there is no sshd_config file, SSH is not installed on Linux. After sudo apt-Get Install SSH is used, the default value of the permitrootlogin option in the sshd-config file is yes, for newly installed SSH instances, do not perform the following two operations)
2. Service sshd restart
3. Run the setup command to close the firewall.
Problem:
Garbled characters are displayed after you log on with putty.
Solution:
In fact, only one step is needed: In window-> translation, Character Set, change use font encoding to UTF-8, others do not need to be changed (after the method is changed, uppercase letters may be displayed with garbled characters ).
### Method 1:
Open putty masterProgram, Select window-> appearance-> font settings-> change settings, select the fixedsys font, and select chinese_gb2312 as the character set. In window-> appearance-> translation, modify ed data assumed to be in which character set and change use font encoding to UTF-8. If this is often used, save these settings in the session.
Save Method: After completing the preceding operations, select the following two items:
In window-> appearance-> translation, select treat CJK ambiguous characters as wide and Caps Lock acts as Cyrillic switch.
### Method 2:
Edit/etc/sysconfig/i18n
Change "lang =" zh_CN.UTF-8 "to" lang = "zh_cn.gb18030", save and log on again.
# Method 3:
Open putty, and enter
# 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
[reference to thank the author]
using putty login display network error: Connection refused: http://qiliuping.blog.163.com/blog/static/102382932010223104518459/
putty Chinese garbled problem solution: http://blog.csdn.net/hjy273/article/details/4102714