This is the SSH Secure Shell Client for many years unresolved short board, requires both the client and server to ' UTF-8 ' encoding, the Chinese version of Windows encoding is non-UTF-8. Zh_cn. The UTF-8 is a UTF-coded Chinese language environment.
Windows uses GB2312 encoding, most Linux system support is UTF-8 encoding, and remote login using local code, so there will be garbled problems, several existing solutions:
Scenario One: Modify environment variables for Linux servers
With Linux, there is a. bash_profile configuration file under the user root, which is only valid for the current user. Modify the/etc/profile file if it is valid for all users
Use the LS-A command to view the file. After you open the file by using the VI editor, add the
Lang=zh_cn. GB2312
Export LANG
To display Chinese correctly. After you change the. Bash_profile configuration file, the file reads as follows: (I'm using this method!) )
#. Bash_profile
# Get the aliases and functions
If [-f ~/.BASHRC]; Then
. ~/.bashrc
Fi
# User specific environment and startup programs
Path= $PATH: $HOME/bin
Lang=zh_cn. GB2312
Export PATH
Export LANG
Unset USERNAME
Scenario Two: Or use other remote login software and modify the configuration to set the character encoding to UTF-8.
PS: remote login Software command line interface PUTTY,CTERM,SECURECRT, with FTP function filezilla,secure Shell Client, graphical interface Xming,xshell,xmanager, etc.
Let's take putty and SECURECRT as an example.
Modify SECURECRT Settings: Options, session options, and appearance (appearance), character (Character), select UTF-8.
Putty Select the Windows--translation on the left side of the configuration window and select "which" on the right side of the Received data assumed to is in character UTF-8 set drop-down list
++++++++++++++++++++++++++++++++++++++++++
Another article: SSH Secure Shell client Chinese garbled solution
Said this is the SSH Secure Shell Client for many years unresolved short board, require the client and server side to ' UTF-8 ' code, NN, this I finally know that the Windows Chinese version of the code incredibly UTF-8.
I do not change the operating system, you can not use this stuff?
Thus, the solution seems to be only two.
1, change the system.
2, using Putty:http://filezilla-project.org/download.php?type=client
Of course, if you need sftp, you can use FileZilla, which includes a small server-side and FTP functionality.
is to install the trouble point ...
Later found the fundamental solution, only know the method, do not know the reason.
#vi/etc/sysconfig/i18n
Change the content to
Lang= "ZH_CN. GB18030 "
Language= "Zh_CN.GB18030:zh_CN.GB2312:zh_CN"
Supported= "ZH_CN. GB18030:zh_CN:zh:en_US. Utf-8:en_us:en "
Sysfont= "Lat0-sun16"
SSH access to Linux garbled problem