macOS Mojave ssh 登陆 LC_CTYPE: cannot change locale (UTF-8): No such file or directory

macOS Mojave 使用 ssh 登陆远程服务器的时候提示错误信息:

-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory

通过修改ssh_config文件可以解决这个问题:

sudo vi /etc/ssh/ssh_config

将SendEnv LANG LC_*用#注释即可