Hi, In case you could find it useful this patch overwrite previous stored key with a untrusted key
http://thread.gmane.org/gmane.network.ssh.dropbear/593/focus=598 applying that patch "ssh u...@host exit; scp ..." works, plus solving the problem to reacquire a new host key into embedded devices (the option should be used with cautions). 2009/5/21 Matt Johnston <[email protected]>: > I don't think that will work - "-y" doesn't save the key, it > just skips the question for that run. > > SCP can't do it as far as I know - the nicest solution might > be to give scp a flag that will pass any argument through to > the ssh client (like -o, but for dashed-flags). > > Cheers, > Matt > > On Thu, May 21, 2009 at 09:50:25AM +0200, Roberto A. Foglietta wrote: >> ssh -y u...@host exit; scp file u...@host:/tmp >> >> 2009/5/21 Hamish Moffatt <[email protected]>: >> > Hi, >> > >> > dropbear (as ssh) has a -y option to always accept the remote host key, but >> > I can't find a similar option for the scp applet. Should I just hack >> > something in for my purposes? >> > >> > thanks >> > Hamish >> > -- >> > Hamish Moffatt, >> > Calyptech >> > 5/486 Lower Heidelberg Road >> > Heidelberg, Victoria 3084, Australia >> > >> > T: +61 3 9455 8611 >> > F: +61 3 9459 9966 >> > E: [email protected] >> > W: http://www.calyptech.com >> > >> > >> > >> >> >> >> -- >> /roberto >> > > -- /roberto
