dbclient fails to honor -o options
Hans Harder
hans at atbas.org
Wed Oct 8 20:14:39 WST 2014
you can use scp with -y -y option.
This is passed to dbclient with the underneath patch for scp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ucc.gu.uwa.edu.au/pipermail/dropbear/attachments/20141008/f234f237/attachment.htm
-------------- next part --------------
--- a/scp.c 2014-10-08 05:34:21.000000000 -0600
+++ b/scp.c 2014-10-08 05:35:38.000000000 -0600
@@ -324,7 +324,7 @@ main(int argc, char **argv)
addargs(&args, "%s", ssh_program);
fflag = tflag = 0;
- while ((ch = getopt(argc, argv, "dfl:prtvBCc:i:P:q1246S:o:F:")) != -1)
+ while ((ch = getopt(argc, argv, "dfl:prtvBCyc:i:P:q1246S:o:F:")) != -1)
switch (ch) {
/* User-visible flags. */
case '1':
@@ -332,6 +332,7 @@ main(int argc, char **argv)
case '4':
case '6':
case 'C':
+ case 'y':
addargs(&args, "-%c", ch);
break;
case 'o':
@@ -1145,7 +1146,7 @@ void
usage(void)
{
(void) fprintf(stderr,
- "usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]\n"
+ "usage: scp [-1246BCpqrvy] [-c cipher] [-F ssh_config] [-i identity_file]\n"
" [-l limit] [-o ssh_option] [-P port] [-S program]\n"
" [[user@]host1:]file1 [...] [[user@]host2:]file2\n");
exit(1);
More information about the Dropbear
mailing list