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


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 web content services users.

I need every article line from this 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.

The innovatively prepared dumps contain all the tips and tools that you need to meet the challenge of 210-065 Exam. It will easily materialize your career aspirations, imparting you the best knowledge not only to pass the exam but also to face the challenges of your professional life.

Add new comment