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_*
![](https://img2018.cnblogs.com/blog/567850/201901/567850-20190116140845135-2040206824.png)
3 重新登陆远程主机,解决