strange scp behavior

Matt Johnston matt at ucc.asn.au
Thu Aug 30 19:01:09 WST 2007


On Tue, Aug 28, 2007 at 11:48:55AM +0200, Roberto A. Foglietta wrote:
> Hi to all folks,
> 
>  scp works but dbclient used as sco don't, I tried to figure out why...
> ...but what I found make me fool. it seems to me dbclient try to
> resolve the first parameter even when the host is a second one.
> However fails in both where OpenSSH scp works pretty well. Thanks
> 
> foglietr at eemd2364170:~/Desktop/dropbear-0.49/_install/bin$ strace
> ./dbclient dbclient foglietr at gexs22:/tmp 2>&1 | grep dbclient

Running that doesn't make any sense. The second argument of
"dbclient" is always a hostname - dbclient is a ssh program,
not a scp program.

If you want to scp a file, run 'scp', not 'dbclient'. Note
that scp will itself run a ssh client (such as dbclient or
OpenSSH's 'ssh'). You can use its '-S' argument to specify
which ssh client.

If you've compiled dbclient and scp as a single binary with
dropbearmulti, you can "ln -s dropbearmulti scp" and run
that.

Cheers,
Matt


More information about the Dropbear mailing list