The solution to Chinese garbled characters in SSH Secure Shell Client. This is a shortcoming that SSH Secure Shell Client has not solved for many years. It requires both the client and the server to have 'UTF-8' encoding. The encoding of the Chinese version of Windows is not UTF-8. zh_CN.UTF-8 is UTF-encoded Chinese locale. Windows uses GB2312 encoding, most Linux systems support UTF-8 encoding, and remote login uses local encoding, so there will be a problem of garbled characters; there are several solutions:
1. Modify the linux system environment variables
Modify the /etc/sysconfig/i18n file
#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"
then make it work
#source /etc/sysconfig/i18n
2. Modify the linux system environment variables
Use other remote login software and modify the configuration to set the character encoding to UTF-8.