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

1解决iterm远程登录主机报错

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

 2 更改Mac本机的ssh_config,而不是更改服务器的
 sudo vi /etc/ssh/ssh_config
  注释掉   SendEnv LANG LC_* 
 

 3 重新登陆远程主机,解决

原文地址:https://www.cnblogs.com/QuestionsZhang/p/10276714.html