annie
Sent via Deja.com http://www.deja.com/
Before you buy.
> I have been having problems running scp lately. When I run
> scp file-of-hostA hostB:/remote/directory and got the error message:
> ksh: scp: not found
> lost connection
sounds like it is not in your $PATH. try giving the full path to the
executable, often /usr/local/bin/scp ...
if so, modify your PATH variable upon startup to add /usr/local/bin .
jose nazario jo...@biocserver.cwru.edu
Another problem may be the default path built into the sshd on
the target machine. /usr/local/bin is not normally included.
You may need to recompile/reinstall the sshd.
Bob
--
><> ><> ><> ><> ><> ><> ><> ><> ><> ><> ><> ><> ><>
Bob Van Cleef, Member of Technical Staff (408) 734-8100
MicroUnity Systems Engineering, Inc. FAX (408) 734-8136
475 Potrero Ave., Sunnyvale, CA 94086 vanc...@microunity.com
If we're talking about SSH2, then the problem I've had with scp and the
lack of /usr/local/bin in the destination hosts $PATH is overcome by
adding the following to sshd2_config --
subsystem-sftp /usr/local/bin/sftp-server
If that is why your scp fails, then changing that line seems much easier
than rebuilding with a different --prefix config.
maldata