Putty network error: Connection refused garbled

Source: Internet
Author: User
Tags change settings

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.