Best way to get data off openwrt device?

I have my openwrt router monitor the adsl connection for faults. The faults it detects it saves to a file, and at the moment emails to me using mailsend.

This work 90% of the time, but because it is detecting faults - some of the time it tries to send an email when the adsl connection is down, and so the email fails.

Now though I could just copy the log file via scp to a machine on the lan. I though to use dropbear client - but looks like dropbear doesn't have the client compiled in. So whats best? Install a full ssh client? Or are there any other methods to get the files off the router?

At the moment the files are in the ram disk, but space there is limited, so know they have to regularly be moved from the router.

Any ideas?

If you're just logging stuff set up remote syslog to a machine on the LAN.

scp is a binary on my OpenWrt installation. That's what you re looking for, no?

# /usr/bin/scp 
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
           [-l limit] [-P port] [-S program]
           [[user@]host1:]file1 [...] [[user@]host2:]file2

Borromini - doah! How did I miss that.

Yes have scp on my router - I thought I checked that - don't know how i missed it.

Can it do an id file - so I can copy without a password?

It's just a link to the dropbear executable actually. And the usage info it prints clearly says

[-i identity_file]

so I'd wager it can :wink: