--- openssh-2.9.9p2/scp.c.orig Thu Sep 20 02:57:56 2001 +++ openssh-2.9.9p2/scp.c Fri Sep 28 05:29:09 2001 @@ -242,9 +242,11 @@ addargs(&args, "-oClearAllForwardings yes"); fflag = tflag = 0; - while ((ch = getopt(argc, argv, "dfprtvBCc:i:P:q46S:o:F:")) != -1) + while ((ch = getopt(argc, argv, "dfprtvBCc:i:P:q1246S:o:F:")) != -1) switch (ch) { /* User-visible flags. */ + case '1': + case '2': case '4': case '6': case 'C': @@ -961,7 +963,7 @@ usage() { (void) fprintf(stderr, - "usage: scp [-pqrvBC46] [-F config] [-S ssh] [-P port] [-c cipher] [-i identity]\n" + "usage: scp [-pqrvBC1246] [-F config] [-S ssh] [-P port] [-c cipher] [-i identity]\n" " [-o option] f1 f2\n" " or: scp [options] f1 ... fn directory\n"); exit(1); --- openssh-2.9.9p2/scp.1.orig Tue Sep 18 07:56:57 2001 +++ openssh-2.9.9p2/scp.1 Fri Sep 28 05:30:54 2001 @@ -19,7 +19,7 @@ .Nd secure copy (remote file copy program) .Sh SYNOPSIS .Nm scp -.Op Fl pqrvBC46 +.Op Fl pqrvBC1246 .Op Fl F Ar ssh_config .Op Fl S Ar program .Op Fl P Ar port @@ -125,6 +125,14 @@ command-line flag. For example, forcing the use of protocol version 1 is specified using .Ic scp -oProtocol=1 . +.It Fl 1 +Forces +.Nm +to use SSH1 only. +.It Fl 2 +Forces +.Nm +to use SSH2 only. .It Fl 4 Forces .Nm