Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

sh: scp: not found

1,248 views
Skip to first unread message

R. Brockway

unread,
Feb 28, 2001, 9:56:42 AM2/28/01
to
Just installed openssh 2.5.1p1 with no problems upgrading from 2.3.0p1.
however, when running scp, I now get an error after ssh asks for login
and password as follows:

sh: scp: not found

or

bash: scp: command not found

is the new version looking for scp in a place other than /usr/local/bin?
the locations for all ssh's binaries are /usr/local in this
installation.

reader of news

unread,
Feb 28, 2001, 11:51:18 AM2/28/01
to
I had the same problem and
cp /usr/local/bin/scp /bin
solves the problem

Markus Salax

unread,
Feb 28, 2001, 2:44:30 PM2/28/01
to
r...@spam.totemsecurity.com (R. Brockway) wrote in
<3A9D11AA...@spam.totemsecurity.com>:

>Just installed openssh 2.5.1p1 with no problems upgrading from 2.3.0p1.
>however, when running scp, I now get an error after ssh asks for login
>and password as follows:
>
>sh: scp: not found

it uses some default path which probably doesn't include your /usr/local/bin
directory.
you can set the path it should search in either by specifying it in
~/.ssh/environment or by recompiling ssh with the option --with-default-
path=/your/bin/directories
i have had the same problem in v2.2 and have used the environment method until
i upgraded to 2.5.0 a few days ago where i just used the --with-default-path
option.. both fix the problem.

max

KLN

unread,
Mar 1, 2001, 3:44:25 PM3/1/01
to
> >sh: scp: not found
>
> it uses some default path which probably doesn't include your /usr/local/bin
> directory.
> you can set the path it should search in either by specifying it in
> ~/.ssh/environment or by recompiling ssh with the option --with-default-
> path=/your/bin/directories

I compiled openssh with --with-default-path set, but it should be noted that
running an rc script on login with a path setup can over-write the default path
you compiled with. So if you use a .cshrc, .bashrc or other script which
modifies path, be sure to include your default directory for ssh. Also I found
scp didn't like it with I had an echo statement in my bashrc.

Just a couple of gotchas.

Cheers,
K Nairn

0 new messages