Results 1 to 3 of 3

Thread: Language is always English when logging in over ssh

  1. #1

    Default Language is always English when logging in over ssh

    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?

  2. #2

    Default Re: Language is always English when logging in over ssh

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    - From the sshd_config manpage:

    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/

    iQIcBAEBAgAGBQJLO36eAAoJEF+XTK08PnB5v/AP/15Ia6vmCHzzJm6rxJcDFWZ9
    i2OnM3sJTKlpJJm8Uq7RK+iASbjBc1gyUYd55bkPntIwi6qS5ms5zx6WhNo670p0
    +B0j67DDS4Onh13efvjo1xBmPMq7qakUE/kLkzBNs5tPdSMh3dI8XXNgZ1Wc7bD5
    ryJ9X5+KHOtEPp9cVjFuzFunqDgjEKylqgih+4lzCJXPPg/3y7zpaXT2c+lpDK29
    u5EDtxY9ekpULYSHKgM9lvu5qqmpDS8nFLWXOW1MXcf+ccmOLfnmynSD/ZGT255M
    VBnXJC5IFySvMWHueM85Olb1NDYUkxnP9hngvmMPAXX01rT2LmM1Fo0y3pB8+dY7
    f33N3AuSNKTEMF6iIbhgkaCziEUZN7WvtwWlDLltC3dwROBrNTpDc7NdIyJCl6wQ
    1E6lmsxbX/OUAuOnF09fi9P6GXD3ctTt9PxJS7Z470By8VPhs9BvmLkhx8WXtqZ+
    +TnC7dGzVLFBj2cReqfiKy6V5GbStMvO4wXik0iteUO9pQSrHIhOGdq5aq+Upli9
    JfDJeAADXIwr05mDnhnJKAL776FsDVpjD34Mk9x+wyD9c1QcIBFtLUnGNEqmaiUN
    rbE1Mmg7unyPDuR4zWdT9F7yG5W25syjr0QTpDoafS19bUNRwJVqjxdKalzjFgbZ
    E4hJQVNUhWtfdz3MxC1u
    =hyjp
    -----END PGP SIGNATURE-----

  3. #3

    Default Re: Language is always English when logging in over ssh

    Thanks, that makes sense as the system I'm ssh'ing from is another Opensuse 11.2 system which is set to UK English.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •