[CentOS] Centos 6: language mess with ssh

Fri Oct 30 14:32:27 UTC 2015
Tony Mountifield <tony at softins.co.uk>

In article <56337B09.7080901 at aime-toulouse.fr>,
Philippe BOURDEU d'AGUERRE <bda at aime-toulouse.fr> wrote:
> Thank you for you help.
> 
> I tried your tips but the problem remains. Example:
> 
> $ echo "SendEnv LANG LC_ALL" > ~/.ssh/config
> $ LANG=C; export LANG; LC_ALL=C; export LC_ALL
> $ ssh aa at quercy
> You are required to change your password immediately (root enforced)
> Last login: Fri Oct 30 15:02:34 2015 from quercy
> WARNING: Your password has expired.
> You must change your password now and login again!
> Changement de mot de passe pour l'utilisateur aa.
> Nouveau mot de passe :
> MOT DE PASSE INCORRECT : BEAUCOUP trop court

Maybe you also need to put "AcceptEnv LANG" in /etc/ssh/sshd_config on
the remote system, to tell it to honour the LANG being sent?

Cheers
Tony
-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org