<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ssh and environment variables in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ssh-and-environment-variables/m-p/5048292#M48560</link>
    <description>It does so by default on my RH Linux machine, i.e. for example&lt;BR /&gt;when I do `ssh &lt;HOSTNAME&gt; -l &lt;USERNAME&gt; env`&lt;BR /&gt;I see the variables that are defined for that user in his shell. Isn't that what you need?&lt;/USERNAME&gt;&lt;/HOSTNAME&gt;</description>
    <pubDate>Tue, 22 May 2007 03:57:22 GMT</pubDate>
    <dc:creator>Alexander Chuzhoy</dc:creator>
    <dc:date>2007-05-22T03:57:22Z</dc:date>
    <item>
      <title>ssh and environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-and-environment-variables/m-p/5048288#M48556</link>
      <description>Hi all. I am running a script which uses ssh to run command on a Linux server ( The script runs on HP-UX ). I use the -l flag to connect with a certain user. ssh works fine, the thing is certain commands require some environment variables of the user . Is there any way to make ssh to load the environment of that user?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Leonid.</description>
      <pubDate>Tue, 22 May 2007 02:13:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-and-environment-variables/m-p/5048288#M48556</guid>
      <dc:creator>Leonid Mishkind</dc:creator>
      <dc:date>2007-05-22T02:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: ssh and environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-and-environment-variables/m-p/5048289#M48557</link>
      <description>Shalom Leonid,&lt;BR /&gt;&lt;BR /&gt;I run a script on the command line that loads the users .profile or necessary variables. This should include TERM variable.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 22 May 2007 03:46:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-and-environment-variables/m-p/5048289#M48557</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-05-22T03:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: ssh and environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-and-environment-variables/m-p/5048290#M48558</link>
      <description>Whe executing a command like that, a full login isn't done, thus environment variables you'd usually associate with a login aren't there.&lt;BR /&gt;&lt;BR /&gt;As you are running a command on the remote host, you could write a wrapper to set them, and call the wrapper instead.&lt;BR /&gt;&lt;BR /&gt;Failing that, you could look at the 'PermitUserEnvironment' sshd configuration directive, and see if that fits your needs.</description>
      <pubDate>Tue, 22 May 2007 03:46:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-and-environment-variables/m-p/5048290#M48558</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-05-22T03:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: ssh and environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-and-environment-variables/m-p/5048291#M48559</link>
      <description>Thanks guys. Since there is only one variable I really need, I decided to export it before the execution of the command.&lt;BR /&gt;&lt;BR /&gt;Leonid</description>
      <pubDate>Tue, 22 May 2007 03:53:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-and-environment-variables/m-p/5048291#M48559</guid>
      <dc:creator>Leonid Mishkind</dc:creator>
      <dc:date>2007-05-22T03:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: ssh and environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-and-environment-variables/m-p/5048292#M48560</link>
      <description>It does so by default on my RH Linux machine, i.e. for example&lt;BR /&gt;when I do `ssh &lt;HOSTNAME&gt; -l &lt;USERNAME&gt; env`&lt;BR /&gt;I see the variables that are defined for that user in his shell. Isn't that what you need?&lt;/USERNAME&gt;&lt;/HOSTNAME&gt;</description>
      <pubDate>Tue, 22 May 2007 03:57:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-and-environment-variables/m-p/5048292#M48560</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2007-05-22T03:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: ssh and environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-and-environment-variables/m-p/5048293#M48561</link>
      <description>Yes , This is what I need. But I guess my ssh is not configured to do so.</description>
      <pubDate>Tue, 22 May 2007 03:59:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-and-environment-variables/m-p/5048293#M48561</guid>
      <dc:creator>Leonid Mishkind</dc:creator>
      <dc:date>2007-05-22T03:59:40Z</dc:date>
    </item>
  </channel>
</rss>

