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 <hamish.moff...@calyptech.com>: > > 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: hamish.moff...@calyptech.com > > W: http://www.calyptech.com > > > > > > > > > > -- > /roberto >