Fixed bash warning setlocale LC_CTYPE

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

How to fix this warning while connecting to remote ssh servers via Terminal on macOS

Solution 1: Modify the file :vi /et/ssh/sshd_config .

Comment the parameter:

#SendEnv LANG LC_*

Solution 2:

Terminal > Preferences > Select Terminal type such 
as Basic (default) > Advanced tab: 
unsetting ‘Set locale environment variables on startup’ check box

You might like

Avatar

About the Author: Toc Xoan

Leave a Reply

Your email address will not be published. Required fields are marked *