When we We authenticate on remote servers with the help of the application Terminal FROM macOS, after SSH authentication, we happen to receive the next error message:
warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory

The error is not serious and is not returned by the server to which we have authenticated. Is returned by maccos itself, trying to change the variables of encoding of the server we connected to.
How-To FIX : warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
In the application Terminal, we go to Preferences > Profiles > Advanced
In partea de jos de la tab-ul “Advanced“, debifatio optiunea “Set locale environment variables on startup“.
Close the entire terminal application, then reopen for the setting to be applied.