scp with openssh on the server side and $PATH.

Phil Karn karn at
Sat Dec 11 06:35:01 EST 1999

>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

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


More information about the openssh-unix-dev mailing list