-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