1

Using dropbear's dbclient and scp implementation, is there a way to get the same behavior produced by openssh when using the scp option "-oStrictHostKeyChecking=no".

In other words, can I make dropbear's scp ignore the "Host $hostname is not in the trusted hosts file" warning?

The "dbclient" program will do this with the '-y' command line option, so it seems like it ought to be possible... what am I missing here?

0

Unfortunately it seems that there is a bug in dropbear and -y parameter is not passed to scp properly.

But do you really need to ignore "Host not in trusted host file"? Maybe what you should do is to add host key to .ssh/known_hosts file.
There is another bug in dropbear that causes scp not to read known_hosts when it is run as startup script.

I found info about both issues with dropbear and the solution here:

http://www.linksysinfo.org/index.php?threads/scp-wont-run-in-startup-script.68197/

If that is your issue, you simply need to set appropriate value of $HOME variable in your script i.e.

export HOME=/path/to/home (/path/to/home should be parrent directory of your .ssh directory containing known_hosts)

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for?Browse other questions tagged or ask your own question.