Fixed bash warning setlocale LC_CTYPE

52 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]. I've created a dogecoin wallet to receive blog funding: DE6F5FisSCy7yz5rpHY1ChMSGYnDMpFZ1Q

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.