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.
>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
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