dbclient - read from standard input

Hai Zaar haizaar at haizaar.com
Sun Dec 14 20:30:12 WST 2008


Good day!
Why does dbclient reads data from tty and not from standard input? For
example, OpenSSH reads password from tty and data from standard input,
enabling piping command's stdout to remove host via ssh, like this:
$> echo asdf | ssh remotehost cat
asdf
And with dropbear we have:
$> echo asdf | dbclient remotehost cat
$>
However this hack works:
$> echo asdf > $(tty) | dbclient remotehost cat
asdf
$>
But we not always have a tty (i.e. dbclient run from system script).
Can I force dbclient to read data from stdin? (Or is there any
workaround of this problem?)

dbclient version 0.52 on x86 (same behavior on ARM).

P.S. I'm not on the list, so please CC me. Thanks.
--
Zaar



-- 
Zaar



More information about the Dropbear mailing list