bash: warning: setlocale: LC_ALL: cannot change locale (en_GB.UTF-8)

Email this to someoneShare on Google+Share on FacebookTweet about this on TwitterShare on LinkedIn

Problem

When trying to connect with ssh to a linux (debian- ubuntu) server you get the following error:

Solution

The reason is that the server is missing the en_US locale that your client is trying to use to connect to the server.
Login to the server and by using sudo (or su) run the following to install the missing en_US locale and make sure that you leave default to ‘None’ as described here: