Problem with dropbear ssh on FreeBSD

Mark McDonagh payload at gmail.com
Fri Apr 6 00:38:09 WST 2007


Hi,

Ive a small problem with dropbear running on Freebsd. Ive a small script
that does the following.

#!/bin/sh
# test.sh
#
SSH=/dropbear-0.49/dbclient
FILE=/tmp/mark.txt
$SSH -i $IDFILE username at machine cat /etc/resolv.conf >  $FILE

Basically I want to get the contents of a file on a remote machine and
write it to a file on the local machine.

When i run the command from the command line it works however if i run the
following command 

daemon -cf /test.sh

The $FILE is created however the file is empty

FreeBSD 5.4
Dropbear client v0.49

Anyone any ideas

Mark

ps I know i could get around this problem with scp, but thats not the
answer im looking for



More information about the Dropbear mailing list