dropbear dbclient + scp, equivalent to openssh "-oStrictHostKeyChecking"

Super User Asked by Brian McFarland on September 8, 2020

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?

One Answer

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:

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)

Answered by running.t on September 8, 2020

Add your own answers!

Related Questions

Exim: How to send email (with headers) from command line?

2  Asked on January 1, 2022 by robby75


How to configure VSCode to find yarn v2 installed modules

1  Asked on January 1, 2022 by michael-prescott


GRE tunnel to home network

0  Asked on January 1, 2022 by jensjeflensje


Customize Notepad++ XML Tools plugin shortcuts

1  Asked on December 29, 2021 by user1201528


How to copy the terminal output?

5  Asked on December 29, 2021 by andy-frdric-andrianiaina


Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir