default-path

Damien Miller djm at mindrot.org
Sat Mar 18 10:05:06 EST 2000


On Fri, 17 Mar 2000, Mate Wierdl wrote:

> On Thu, Mar 16, 2000 at 07:01:16PM -0500, Ben Taylor wrote:
> 
> > _PATH_STDPATH is defined in some unices and not others.  In 
> > the case of Solaris, we just override it.
> 
> So what is default-path on Solaris if it is not specified for
> configure?

It is the one in defines.h

> Reading the the sshd man page, I see
> 
> 6.   Reads $HOME/.ssh/environment if it exists.
> 
> Does this mean that I can/should set PATH for scp sessions on the
> *remote* system?

Yes, this should work.

> So how does scp work?  Does it call ssh at one point?  At what point
> of the copying process does the default-path gets used?

Yes. scp on the local machine runs scp on the remote machine via ssh.
The default path is used by the sshd on the remote machine when it
tries to execute scp.

-d

--
| "Bombay is 250ms from New York in the new world order" - Alan Cox
| Damien Miller - http://www.mindrot.org/
| Email: djm at mindrot.org (home) -or- djm at ibs.com.au (work)








More information about the openssh-unix-dev mailing list