You asked for a quick solution and I think the patch submitted could it be if it would work for the current version and for scp too. ;-)
This patch is more than accepting a unknown host/key but it force to accept and to store any changed keys which is much more harmful than -y because it left unprotected on man-in-the-middle attack. However for some circumstances like machine-to-machine point-to-point connection for debug or installation purposes this could be an accepting way to go - otherwise not. 2010/10/12 Ming-Ching Tiew <[email protected]>: > > I don't understand the patch. > > It seems to patch all the common files. But I have already happy with > dbclient -y, it is able to allow me to get passed the prompting of > unknown hosts/keys. Won't it be better just create that additional > -y option into scp, which I supposed when set, it will get me passed > the prompting, right ? > > Thanks for the patch I will study it closer. > > On 10/12/10 16:54, Roberto A. Foglietta wrote: >> >> Try this patch >> >> >> http://www.roberto.foglietta.name/work//sections/02_Linux/03_Embedded/06_Marconi-Ericsson/dropbear_always_accept_and_store_hostkey.patch >> >> it referes to an previous version of dropbox but it could still work, >> tell me back if it still works or not. >> >> it was not accepted into main stream because usage of this option >> seriously degrade security. >> >> 2010/10/12 Ming-Ching Tiew<[email protected]>: >> >>> >>> I used dbclient -y to get pass the prompting of answering 'y' >>> to unknown hosts, in batchmode execution. >>> >>> However, I could not do the same with scp. Tried these :- >>> >>> scp -q .... >>> scp -o "BatchMode yes" .... >>> scp -y .... >>> >>> None of them works. I am using dropbear 0.51. Any quick solution >>> this ? >>> >>> >> >> >> > > -- Roberto A. Foglietta, Soluzioni informatiche B2B mobile: (+39) 349.33.30.697 http://www.linuxteam.org skype: robang74
