原文地址
WHAT
新建的ubuntu服务器,ssh进去后无法在终端输入中文
WHY
新建了一台ubuntu16.04服务器,需要添加git用户,但是输入中文的时候发现无法输入
HOW
参考
ubuntu server显示并输入中文
修改/etc/default/locale为:
LANG=”zh_CN.UTF8”
LANGUAGE=”zh_CN:zh”
安装中文包支持
apt-get update && apt-get install language-pack-zh-hans
退出ssh后重新进入
exit
ssh root@xxx.xxx.xxx.xxx
输入中文
git config user.name 啦啦啦
END
大功告成!