I’ve got my language in opensuse 11.2 set to German and it works fine when logging in locally. However if I login over ssh the language defaults to English, ie:
ssh hostname
> set | grep en_
LANG=en_GB.UTF-8
su - myuser
> set | grep de_
LANG=de_DE.UTF-8
I don’t understand why my ssh sessions seem to have a different $LANG to a normal login shell?
AcceptEnv
Specifies what environment variables sent by the client will be copied
into the session’s environ(7). See SendEnv in ssh_config(5) for how to
configure the client. Note that environment passing is only supported for
protocol 2. Variables are specified by name, which may contain the
wildcard characters *' and ?’. Multiple environment variables may be
separated by whitespace or spread across multiple AcceptEnv directives.
Be warned that some environment variables could be used to bypass
restricted user environments. For this reason, care should be taken in
the use of this directive. The default is not to accept any environment
variables.
My system accepts LANG which means if I SSH from my system to the server
it should take my client’s LANG variable. I imagine this is the same for
you and you are SSH-ing FROM an English system. You can change this in
the /etc/ssh/sshd_config file if you want to though that will affect the
entire system. Perhaps you can also configure the client to not send that
variable.
Good luck.
tk83 wrote:
> I’ve got my language in opensuse 11.2 set to German and it works fine
> when logging in locally. However if I login over ssh the language
> defaults to English, ie:
>
> Code:
> --------------------
> ssh hostname
> > set | grep en_
> LANG=en_GB.UTF-8
> su - myuser
> > set | grep de_
> LANG=de_DE.UTF-8
> --------------------
>
>
> I don’t understand why my ssh sessions seem to have a different $LANG
> to a normal login shell?
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/