Putty network error: Connection refused garbled

  
                  

Problem: Using putty login to display network error: Connection refused uses putty login to display network error: Connection refused Use putty login in LAN to display network error: Connection refused

Solution: 1.gedit /etc/ssh /sshd_config Cancel the comment of PermitRootLogin, or change no to yes. (If there is no sshd_config file indicating that SSH is not installed on Linux, after using sudo apt-get install ssh installation, the PermitRootLogin option in the sshd-config file defaults to yes, the newly installed ssh does not need to operate the following two) 2.service sshd restart 3 The .setup command enters to shut down the firewall.


Problem: Displaying garbled characters after landing with putty

Solution: In fact, only one step is required: In window->Translation, in character set, use font The encoding is changed to UTF-8, and the others do not need to be changed (may be garbled if the uppercase letter is displayed after the method is changed). ###方法一: Open the putty main program, select window->Appearance->Font settings->Change Settings, select the Fixedsys font, and select CHINESE_GB2312 for the character set. In window->Appearance-> Translation, Received data is assumed to be in which character set, use Use font encoding to change to UTF-8. If you use it frequently, save these settings in the session. Save method: Select the following two items while doing the above: In window->Appearance-> Translation, check: TReat CJK ambiguous characters as wide and Caps Motion acts as Cyrillic switch.

###方法二: Edit /etc/sysconfig/i18n Change the first sentence <;LANG=”zh_CN.UTF-8″” to “LANG=”zh_CN.GB18030″&rdquo ;, save and log in again after completion. ##方法三: Open putty, after login is successful, 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

Copyright © Windows knowledge All Rights Reserved