When I try to ssh into my remote server using terminal it give me the following warning.

-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8)

It doesn't happen to every server, but just one particular server. In order to fix this problem, you need to add the following line into .bash_profile in your computer not your server.

 

export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
 
After that save and restart your terminal session, then try to ssh into your server again. You should not see the warning again.