When I connect to my Linux server (Ubuntu 14.04) using putty I have some problems because the SSH-connection always uses ANSI_X3.4-1968
as charset (output of locale charmap
).
However my system is configured to use de_DE.UTF-8
which can be seen by cat /etc/default/locale
:
LANG=de_DE.UTF-8
LC_MESSAGES=POSIX
The used connection profile of putty uses UTF-8
as Remote character set (Window -> Translation). I also tried to use the value de_DE.UTF-8
here, but there was no change.
The strange thing is that when I log in on the physical console an execute locale charmap
there I get the correct and expected result: UTF-8
.
Why do I get different configured charsets using Putty (v0.67) and the physical console? Is this therefore a putty configuration problem, or is the problem on the linux server side?
Update 1:
I also compared the /etc/pam.d/sshd
with one from a second similar server that is not affected by this problem and both files were identical. The same is true for the file /etc/ssh/ssh_config
(both files contain the line SendEnv LANG LC_*
).
I also executed the following commands to make sure the locales are not defect:
sudo locale-gen --purge
sudo update-locale LANG=de_DE.UTF-8