Mosh가 설치되었지만 표시되지 않습니다

Mosh가 설치되었지만 표시되지 않습니다

mosh을 통해 서버에 연결하려고 하면 다음과 같은 일련의 오류 메시지가 생성됩니다. 이는 명령이 이전에 실행되어 서버에 mosh가 설치되어 있음을 보여주었음에도 불구하고 발생합니다.

sudo apt-get install mosh
[sudo] password for jerdvo:
Reading package lists... Done
Building dependency tree
Reading state information... Done
mosh is already the newest version (1.3.2-2.1build3).
The following package was automatically installed and is no longer required:
  libfwupdplugin1
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 46 not upgraded.

오류는 다음과 같습니다. 다음을 제외하고는 부적절한 로케일의 징후도 있습니다.Did not find mosh server startup message

어떤 토끼를 먼저 쫓아야 하며, 어떻게 쫓아야 할까요?

서버: 우분투 20.04
로컬: OSX 10.13.6

The locale requested by LC_CTYPE=UTF-8 isn't available here.
Running `locale-gen UTF-8' may be necessary.

The locale requested by LC_CTYPE=UTF-8 isn't available here.
Running `locale-gen UTF-8' may be necessary.

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

Unfortunately, the local environment (LC_CTYPE=UTF-8) specifies
the character set "US-ASCII",

The client-supplied environment (LC_CTYPE=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_ALL to default locale: No such file or directory
LANG=
LANGUAGE=
LC_CTYPE=UTF-8
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
Connection to 159...33 closed.
/usr/local/bin/mosh: Did not find mosh server startup message. (Have you installed mosh on your server?)

의견에서 제안한대로 이것을 시도했습니다.

locale-gen UTF-8
Error: 'UTF-8' is not a supported language or locale

...정말 이상하네요...

그러다가 도망갔어

sudo dpkg-reconfigure locales
en_us.UTF-8

sudo update-locale 
LANG=en_US.UTF-8
Error: 'UTF-8' is not a supported language or locale

지금 어디 있나요?

답변1

SendEnvmacOS에 대해 댓글을 달고 싶을 수도 있습니다 /etc/ssh/ssh_config.

Host *
    SendEnv LANG LC_*  # comment this line

관련 정보