[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: using scp



On Fri, Nov 17, 2000 at 11:31:21PM -0600, Kevin van Haaren wrote:
> i'm trying to use scp between my debian 2.2r1 powerpc firewall 
> (PowerMac 7200) and my iBook running Mac OS X Public Beta.
> 
> ssh works fine.  I have it configured for DSA authentication, no 
> password authentication.  authorized_keys2 is setup correctly and i 
> can get in.
> 
> when i execute scp (from the OS X side) i do:
> scp filename root@powerpc:filename
> 
> after entering my passphrase for my DSA key I get the error:
> bash: scp: command not found
> 
> since OS X uses tcsh i'm assuming the bash error is from the debian 
> side.  When i ssh in directly the Path is set correctly to find scp 
> (it's in /usr/local/bin).
> 
> I don't know if this is a config problem (do I need to create a 
> subsystem for scp in sshd_config?) or just dumb user error.

ssh does not include /usr/local/bin in the PATH, the only reason you
get it in a normal login is because /etc/profile is sourced on a
normal login, but not for non-interactive sessions such as scp.

i would recommend installing the ssh package from woody on potato, or
if the dependencies drag too much woody in, get the woody sources and
compile a .deb for potato.

(with deb-src pointed at woody)
apt-get -b source ssh

i hope you don't have both openssh1 and openssh2 installed at the same
time... 

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Attachment: pgplniyV4k6WF.pgp
Description: PGP signature


Reply to: