<?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 PATH problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-path-problem/m-p/3179244#M162589</link>
    <description>You have to write some wrapper scripts around the command you invoke over ssh if they need specific environment variables.</description>
    <pubDate>Mon, 02 Feb 2004 12:31:33 GMT</pubDate>
    <dc:creator>Olivier Drouin</dc:creator>
    <dc:date>2004-02-02T12:31:33Z</dc:date>
    <item>
      <title>ssh PATH problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-path-problem/m-p/3179237#M162582</link>
      <description>I'm trying to connect wincvs to a cvs on my HP 11i server.  Wincvs uses the following ssh format:&lt;BR /&gt;   ssh -l username hostname commandstring&lt;BR /&gt;&lt;BR /&gt;Because a shell never actually starts, I'm stuck with the path HP used at compile time.  The ssh docs seem to indicate a few possible ways to override this path, (environment and sshrc files) but none of them seem to work.  Can anyone recommend a way around this problem?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;&lt;BR /&gt;Mike</description>
      <pubDate>Fri, 30 Jan 2004 15:55:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-path-problem/m-p/3179237#M162582</guid>
      <dc:creator>Michael Langas</dc:creator>
      <dc:date>2004-01-30T15:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: ssh PATH problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-path-problem/m-p/3179238#M162583</link>
      <description>okay, i don't understand what you really want but lets try.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for the sshd server look for the sshd_conf file and in there is PATH for sshd deamon.&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/ssh stop; /sbin/init.d/ssh start&lt;BR /&gt;&lt;BR /&gt;for the client, ssh uses your own environment.&lt;BR /&gt;&lt;BR /&gt;do a env and see what your path is.&lt;BR /&gt;&lt;BR /&gt;else please explain your actuall problem&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;peace&lt;BR /&gt;donny</description>
      <pubDate>Fri, 30 Jan 2004 16:00:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-path-problem/m-p/3179238#M162583</guid>
      <dc:creator>Donny Jekels</dc:creator>
      <dc:date>2004-01-30T16:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: ssh PATH problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-path-problem/m-p/3179239#M162584</link>
      <description>I figured out a solution although it wasn't the one I was originally looking for.&lt;BR /&gt;&lt;BR /&gt;wincvs uses ssh to run cvs commands on the cvs server.  for example, it might send:&lt;BR /&gt;  ssh -l username hostname cvs -d etc...&lt;BR /&gt;&lt;BR /&gt;This assumes the command cvs is actually in the path.  The problem is that when you use ssh in this way you are stuck with the path that defined at compile time.  It doesn't source .profile or anything because it is not actually starting a shell.  It's kind of like how things run from cron.&lt;BR /&gt;&lt;BR /&gt;The solution I found was to set the CVS_SERVER environment variable to /opt/cvs/bin/cvs on the windows workstation.  this changes the above command string to:&lt;BR /&gt;   ssh -l username hostname /opt/cvs/bin/cvs  etc...&lt;BR /&gt;&lt;BR /&gt;This works, but now I have to set this on every users workstation that will be using CVS.  A better solution would be to find a way to override the path that was defined at compile time.</description>
      <pubDate>Fri, 30 Jan 2004 16:54:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-path-problem/m-p/3179239#M162584</guid>
      <dc:creator>Michael Langas</dc:creator>
      <dc:date>2004-01-30T16:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: ssh PATH problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-path-problem/m-p/3179240#M162585</link>
      <description>I met same problem 2 days ago. As you said,&lt;BR /&gt;when sshd invoking remote command, it is not using .profile.  Environment&lt;BR /&gt;variables like PATH are hardcoded into ssh.&lt;BR /&gt;However, sshd can override these defaults using the file ${HOME}/.ssh/environment&lt;BR /&gt;on remote machine.&lt;BR /&gt;You can allow this behavior editing the &lt;BR /&gt;/opt/ssh/etc/sshd_config file&lt;BR /&gt;"PermitUserEnvironment yes" (restart sshd).&lt;BR /&gt;Beware, environment file is not executed, just scanned. Only accepted records are those like PATH=/usr/bin:/usr/local/bin:/whatever/cvs/bin. No export, no external commands. I had tried out the default PATH first (ssh server "env"), than added the cvs path and enscribed the result to environment file. It works ok. Regards.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 01 Feb 2004 08:17:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-path-problem/m-p/3179240#M162585</guid>
      <dc:creator>Jan Zalman</dc:creator>
      <dc:date>2004-02-01T08:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: ssh PATH problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-path-problem/m-p/3179241#M162586</link>
      <description>Strange my ssh(3.6 p2 hp port) works fine with reading environment.&lt;BR /&gt;&lt;BR /&gt;It started giving errors, so I kicked up maxusers which kicks up nproc and nfile, reinstalled and the error seems to be gone for now.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sun, 01 Feb 2004 09:22:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-path-problem/m-p/3179241#M162586</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-02-01T09:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: ssh PATH problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-path-problem/m-p/3179242#M162587</link>
      <description>Jan,&lt;BR /&gt;&lt;BR /&gt;Thanks of the suggestion. The only problem I have with doing it that way is that I would have to do it for all users using cvs.  I would like to do it in one place to take care of it for everyone.  &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Mike&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Feb 2004 11:08:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-path-problem/m-p/3179242#M162587</guid>
      <dc:creator>Michael Langas</dc:creator>
      <dc:date>2004-02-02T11:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: ssh PATH problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-path-problem/m-p/3179243#M162588</link>
      <description>Setting env for all could be handy for me, too, but I haven't clue. (except the&lt;BR /&gt;piggy way just symlink cvs in /usr/bin ;-)&lt;BR /&gt;Regards</description>
      <pubDate>Mon, 02 Feb 2004 11:51:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-path-problem/m-p/3179243#M162588</guid>
      <dc:creator>Jan Zalman</dc:creator>
      <dc:date>2004-02-02T11:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: ssh PATH problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-path-problem/m-p/3179244#M162589</link>
      <description>You have to write some wrapper scripts around the command you invoke over ssh if they need specific environment variables.</description>
      <pubDate>Mon, 02 Feb 2004 12:31:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-path-problem/m-p/3179244#M162589</guid>
      <dc:creator>Olivier Drouin</dc:creator>
      <dc:date>2004-02-02T12:31:33Z</dc:date>
    </item>
  </channel>
</rss>

