Re: [ILUG] SCP confusion

From: Niall O Broin (niall at domain linux.ie)
Date: Thu 31 May 2001 - 16:18:47 IST


On Thu, May 31, 2001 at 03:17:11PM +0100, Brendan Halpin wrote:

> How do I control the remote path from scp's point of view? The path
> I have in the shell (on the remote machine) sees scp but there
> seems to be no scp1 anywhere. The ssh binary is in the same place
> as scp, so it seems to be found...

The ssh binary doesn't need to be found when you ssh in, and your path when
you ssh in and get a shell is not necessarily the same as when you do an
scp. Try doing

ssh remote_box type scp

presuming that the remot box is running a shell which understands type -
otherwise substitute which or whatever remote command is appropriate. If you
don't get something like scp is /usr/bin/scp but instead get something
like bash: type: scp: not found then you've found the problem, otherwise
I'm stumped :-) pending further information.

Niall



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:10:32 GMT