scp with openssh on the server side and $PATH.

Marc Haber Marc.Haber-lists at gmx.de
Sat Dec 11 03:32:28 EST 1999


Hi!

When I try to use scp from or to a machine that runs openssh-1.2pre16
on Debian Linux, I keep getting the error message "scp: command not
found". Executing  "ssh this-host echo \$PATH" yields
"/usr/bin:/bin:/usr/sbin:/sbin:" which might be set in config.h.

sshd is installed to /usr/local/stow/openssh-1.2pre16/sbin, scp to
/usr/local/stow/openssh-1.2pre16/bin; both programs are then symlinked
so that they can be found in /usr/local/[s]bin.

I changed config.h to say

|#ifndef _PATH_STDPATH
|# define _PATH_STDPATH "/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:"
|#endif

recompiled and reinstalled, but I still keep getting the same,
incorrect $PATH. What am I doing wrong?

btw, it would be easier to verify the correct sshd being executed if

|mh at torres[6/504]:~/devel/userspace/openssh-1.2pre12$ ./sshd -v
|./sshd: invalid option -- v
|sshd version OpenSSH-1.2
|Usage: sshd [options]
Usage message snipped
|mh at torres[7/505]:~/devel/userspace/openssh-1.2pre12$

would show the pre-version stamp as well.

Greetings
Marc

-- 
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber          |   " Questions are the         | Mailadresse im Header
Karlsruhe, Germany  |     Beginning of Wisdom "     | Fon: *49 721 966 32 15
Nordisch by Nature  | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29





More information about the openssh-unix-dev mailing list