tag console
Oct. 5, 2020
Fixing mosh failing on MacOS
macos
•
mosh
•
locale
•
terminal
•
iterm
•
console
TLDR
Problem: trying to connect to a remote server with mosh
you see error messages like:
mosh-client needs a UTF-8 native locale to run.
mosh-server needs a UTF-8 native locale to run.
The locale requested by LC_CTYPE=UTF-8 isn't available here.
locale: Cannot set LC_CTYPE to default locale: No such file or directory
OR when connecting with ssh
from iTerm2
you get the error message
-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory