SSH Secure Shell Client中文乱码的解决方法

转自http://www.cnblogs.com/52linux/archive/2012/03/24/2415082.html

RedHat 7 亲测可用

假设是root用户
/root/.bash_profile 配置文件后,即可正常显示中文.
更改该文件内容如下:( 我使用的是这个方法 !)
vim /root/.bash_profile

# .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

按Esc,输入:wq保存后退出

执行source /root/.bash_profile立即生效

你可能感兴趣的:(SSH Secure Shell Client中文乱码的解决方法)