Using terminal ssh to my Linux servers I have always got the following error:

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

Commenting the following line from /etc/ssh_config file on my Mac was the solution for me:

#   SendEnv LANG LC_*

Note: do not forget to use sudo when editing with in terminal like:

$sudo nano /etc/ssh_config

8 thoughts to “MAC OS X – SSH LC_CTYPE Warning

  • Bruno Furtado

    Hey man, thanks. This really solve my problem.

    Reply
  • Sirajudheen Mohamed Ali

    The file is /etc/ssh/ssh_config on Mac OS X El Captain (10.11.1)

    Reply
    • Nuwan

      Thanks for the tip

      Reply
  • Rumesh

    thanks for the simple solution

    Reply
  • Marco

    I stuck into this problem again
    I setted the SendEnv some months ago and now is here again the error.
    Any clue ?
    El Capitan.
    M.

    Reply
    • Gábor Zsolt Nagy

      No clue. I have no such an issue.
      G.

      Reply
  • Gabor

    That is great! Thanks

    Reply
  • Prabhu Thiyagarajan

    Thanks mate.

    Reply

Leave a comment

Your email address will not be published.

Time limit is exhausted. Please reload the CAPTCHA.