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
Marc.Haber-lists at gmx.de (Marc Haber) writes:> 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 suggest you install the debian package, rather than build it yourself. You can grab it thus: apt-get install ssh Then it'll just work (or you get to report a bug to me ;-) It shouldn't be too long before 1.2pre17 gets into the non-us.debian.org archive, but if you're desperate, look here: http://www.hands.com/~phil/debian/openssh/ssh_1.2pre17-1_i386.deb Cheers, Phil.
>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" yieldsI worked around this problem by doing ln -s /usr/local/bin/scp /usr/bin Perhaps not the most elegant fix, since most people probably expect that when they do a ssh remote execution, they'll get the same PATH they'd get if they logged in. Dunno how to do that without rereading the user's profile each time, though. --Phil
On Fri, 10 Dec 1999 16:32:28 GMT, you wrote:>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.This issue still hasn't been addressed. I don't have a clue what where to search. 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