On Tue, Oct 12, 2010 at 03:31:29PM +0800, Ming-Ching Tiew wrote: > > 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 ?
scp is mostly unmodified from OpenSSH, and Dropbear doesn't pass -o options. A workaround would be to make a script dbclient-noask: #!/bin/sh exec dbclient -y "$@" Then run scp -S dbclient-noask ... A bit ugly, but it should work. Matt
