用mosh替代ssh登录报错“No such file or directory”

Open 这个 问答 由 thomkins 发布于 2017-12-11 · 1320 阅读 1 回复
thomkins 评论于 2017-12-11

The locale requested by LANG=en_US.UTF-8 isn’t available here.
Running `locale-gen en_US.UTF-8’ may be necessary.

The locale requested by LANG=zh_CN.UTF-8 isn’t available here.
Running `locale-gen zh_CN.UTF-8’ may be necessary.

mosh-server needs a UTF-8 native locale to run.

Unfortunately, the local environment (LANG=en_US.UTF-8) specifies
the character set “US-ASCII”,

The client-supplied environment (LANG=zh_CN.UTF-8) specifies
the character set “US-ASCII”.

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=zh_CN.UTF-8
LANGUAGE=zh_CN:en_US:en
LC_CTYPE=”zh_CN.UTF-8”
LC_NUMERIC=zh_CN.UTF-8
LC_TIME=zh_CN.UTF-8
LC_COLLATE=”zh_CN.UTF-8”
LC_MONETARY=zh_CN.UTF-8
LC_MESSAGES=”zh_CN.UTF-8”
LC_PAPER=zh_CN.UTF-8
LC_NAME=zh_CN.UTF-8
LC_ADDRESS=zh_CN.UTF-8
LC_TELEPHONE=zh_CN.UTF-8
LC_MEASUREMENT=zh_CN.UTF-8
LC_IDENTIFICATION=zh_CN.UTF-8
LC_ALL=
Connection to 192.168.1.111 closed.
/usr/bin/mosh: Did not find mosh server startup message.

评论
lemontea 评论于 2017-12-11
#1

在你的.bashrc里面加上这句 export LC_ALL=”en_US.UTF-8”