Fixed bash warning setlocale LC_CTYPE

3 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

About the Author: Toc Xoan

This guy likes taking photos, hunting cheap tours, exploring the unique culture of every cities of Vietnam. Contact: [email protected]