[patch] add -1 and -2 options to scp
Markus Friedl
Markus.Friedl at informatik.uni-erlangen.de
Sun Jul 22 22:44:33 EST 2001
please use -o'protocol=1'
otherwise we have to add option after option to scp.
-m
On Sun, Jul 22, 2001 at 01:06:34PM +0100, Matthew Vernon wrote:
Content-Description: message body text
> Hi,
>
> Several people have asked that scp support the -1 and -2 options, so I
> wrote this patch.
>
> Cheers,
>
> Matthew
Content-Description: scp patch
> --- /tmp/openssh-2.9p2/scp.c Sun Apr 22 18:13:20 2001
> +++ openssh-2.9p2/scp.c Sat Jul 21 13:49:17 2001
> @@ -244,9 +244,11 @@
> addargs("-oFallBackToRsh no");
>
> fflag = tflag = 0;
> - while ((ch = getopt(argc, argv, "dfprtvBCc:i:P:q46S:o:")) != -1)
> + while ((ch = getopt(argc, argv, "dfprtvBCc:i:P:q1246S:o:")) != -1)
> switch (ch) {
> /* User-visible flags. */
> + case '1':
> + case '2':
> case '4':
> case '6':
> case 'C':
> --- /tmp/openssh-2.9p2/scp.1 Sun Feb 4 12:20:19 2001
> +++ openssh-2.9p2/scp.1 Sat Jul 21 13:51:55 2001
> @@ -19,7 +19,7 @@
> .Nd secure copy (remote file copy program)
> .Sh SYNOPSIS
> .Nm scp
> -.Op Fl pqrvC46
> +.Op Fl pqrvC1246
> .Op Fl S Ar program
> .Op Fl P Ar port
> .Op Fl c Ar cipher
> @@ -110,6 +110,14 @@
> .It Fl o Ar option
> The given option is directly passed to
> .Xr ssh 1 .
> +.It Fl 1
> +Forces
> +.Nm
> +to try protocol version 1 only.
> +.It Fl 2
> +Forces
> +.Nm
> +to try protocol version 2 only.
> .It Fl 4
> Forces
> .Nm
Content-Description: .signature
>
> --
> "At least you know where you are with Microsoft."
> "True. I just wish I'd brought a paddle."
> http://www.debian.org
More information about the openssh-unix-dev
mailing list