Fork me on GitHub

You are here

Passing environment variables over SSH

A couple of weeks ago I upgraded our FAI infrastructure to be able to install Etch. And Etch has some differences opposite Sarge. For instance, the openssh daemon is configured as follows (/etc/ssh/sshd_config):

AcceptEnv LANG LC_*

If your ssh client (e.g. /etc/ssh/ssh_config) is configured to pass the LANG or LC_* environment variables you can experience some strange effects if you don't have to correct locales generated on the machine you are connect to over ssh:

thrace:~# perl
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
As a work arround you could generate the correct locale on the server. Or you could unset your variables before sshing to the machine.

It's not possible to override this behavior with your own .ssh/config file. See this http://bugzilla.mindrot.org/show_bug.cgi?id=1285

Comments

It is telling about environment variables over the web worm. That info clearly updated to all of us in this website. That makes me happy to find different type of http://www.thebestessayshelp.net/ web content services users.

I need every article line from this http://auessaywriters.net/ website. This blog has submitted a lot of educational services and essay writing reviews. So everyone must read the following articles and content writing reviews.

Add new comment