Archive for 2016年8月

LC_CTYPE error when ssh from Mac to Linux

SSH from Mac to Linux:

macmini:~ congvc$ ssh dev
Last login: Fri Aug 12 16:29:17 2016 from
-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
[20160814 18:35:26 ec2-user@dev:~ ] $ echo $LC_CTYPE
[20160814 18:39:27 ec2-user@dev:~ ] $ logout
Connection to closed.
macmini:~ congvc$ sudo vim /etc/ssh/ssh_config

Comment out the following line:

# SendEnv LANG LC_*

then no more errors.