Philippe BOURDEU d'AGUERRE
2015-Oct-30 14:13 UTC
[CentOS] Centos 6: language mess with ssh
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 -- Philippe BOURDEU d'AGUERRE AIME - Campus de l'INSA http://www.aime-toulouse.fr/ 135 av. de Rangueil T?l +33 561 559 885 31077 TOULOUSE Cedex 4 - FRANCE Fax +33 561 559 870
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 courtMaybe 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
Philippe BOURDEU d'AGUERRE
2015-Oct-30 14:33 UTC
[CentOS] Centos 6: language mess with ssh
If I put "export LANG=C" in /etc/sysconfig/sshd and restart sshd, all messages are in english. It seems that LANG is taken into account only when connection succeeds. Le 30/10/2015 15:13, Philippe BOURDEU d'AGUERRE a ?crit :> 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 >-- Philippe BOURDEU d'AGUERRE AIME - Campus de l'INSA http://www.aime-toulouse.fr/ 135 av. de Rangueil T?l +33 561 559 885 31077 TOULOUSE Cedex 4 - FRANCE Fax +33 561 559 870
Philippe BOURDEU d'AGUERRE
2015-Oct-30 14:36 UTC
[CentOS] Centos 6: language mess with ssh
Le 30/10/2015 15:32, Tony Mountifield a ?crit :> 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? >That's true ! But it was already there :-( Cheers, -- Philippe BOURDEU d'AGUERRE AIME - Campus de l'INSA http://www.aime-toulouse.fr/ 135 av. de Rangueil T?l +33 561 559 885 31077 TOULOUSE Cedex 4 - FRANCE Fax +33 561 559 870
Philippe BOURDEU d'AGUERRE 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 courtHave you changed your password? If not, you're not really logged in, and it's not getting things like language settings from your home directory. mark
Philippe BOURDEU d'AGUERRE
2015-Oct-30 15:50 UTC
[CentOS] Centos 6: language mess with ssh
Le 30/10/2015 16:16, m.roth at 5-cent.us a ?crit :> Have you changed your password? If not, you're not really logged in, and > it's not getting things like language settings from your home directory.I understand that since I am not yet connected, my settings are not taken into account. But what is odd is that some messages are in english and some others in french. If I connect with GDM, I get same messages but they are all in french which is default language of my box. -- Philippe BOURDEU d'AGUERRE AIME - Campus de l'INSA http://www.aime-toulouse.fr/ 135 av. de Rangueil T?l +33 561 559 885 31077 TOULOUSE Cedex 4 - FRANCE Fax +33 561 559 870