diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | scp.1 | 9 | ||||
-rw-r--r-- | scp.c | 11 | ||||
-rw-r--r-- | sftp.1 | 9 | ||||
-rw-r--r-- | sftp.c | 11 |
5 files changed, 34 insertions, 12 deletions
@@ -8,6 +8,10 @@ | |||
8 | put somewhere sane. Add Ssh.bin to manifest. | 8 | put somewhere sane. Add Ssh.bin to manifest. |
9 | - (djm) Make smartcard support conditional in Redhat RPM spec | 9 | - (djm) Make smartcard support conditional in Redhat RPM spec |
10 | - (bal) LICENCE update. Has not been done in a while. | 10 | - (bal) LICENCE update. Has not been done in a while. |
11 | - OpenBSD CVS Sync | ||
12 | - stevesk@cvs.openbsd.org 2001/09/17 17:57:57 | ||
13 | [scp.1 scp.c sftp.1 sftp.c] | ||
14 | add -Fssh_config option; ok markus@ | ||
11 | 15 | ||
12 | 20010917 | 16 | 20010917 |
13 | - (djm) x11-ssh-askpass-1.2.4 in RPM spec, revert workarounds | 17 | - (djm) x11-ssh-askpass-1.2.4 in RPM spec, revert workarounds |
@@ -6468,4 +6472,4 @@ | |||
6468 | - Wrote replacements for strlcpy and mkdtemp | 6472 | - Wrote replacements for strlcpy and mkdtemp |
6469 | - Released 1.0pre1 | 6473 | - Released 1.0pre1 |
6470 | 6474 | ||
6471 | $Id: ChangeLog,v 1.1531 2001/09/18 05:36:27 mouring Exp $ | 6475 | $Id: ChangeLog,v 1.1532 2001/09/18 05:38:44 mouring Exp $ |
@@ -9,7 +9,7 @@ | |||
9 | .\" | 9 | .\" |
10 | .\" Created: Sun May 7 00:14:37 1995 ylo | 10 | .\" Created: Sun May 7 00:14:37 1995 ylo |
11 | .\" | 11 | .\" |
12 | .\" $OpenBSD: scp.1,v 1.18 2001/09/05 06:23:07 deraadt Exp $ | 12 | .\" $OpenBSD: scp.1,v 1.19 2001/09/17 17:57:56 stevesk Exp $ |
13 | .\" | 13 | .\" |
14 | .Dd September 25, 1999 | 14 | .Dd September 25, 1999 |
15 | .Dt SCP 1 | 15 | .Dt SCP 1 |
@@ -20,6 +20,7 @@ | |||
20 | .Sh SYNOPSIS | 20 | .Sh SYNOPSIS |
21 | .Nm scp | 21 | .Nm scp |
22 | .Op Fl pqrvC46 | 22 | .Op Fl pqrvC46 |
23 | .Op Fl F Ar ssh_config | ||
23 | .Op Fl S Ar program | 24 | .Op Fl S Ar program |
24 | .Op Fl P Ar port | 25 | .Op Fl P Ar port |
25 | .Op Fl c Ar cipher | 26 | .Op Fl c Ar cipher |
@@ -92,6 +93,12 @@ Passes the | |||
92 | flag to | 93 | flag to |
93 | .Xr ssh 1 | 94 | .Xr ssh 1 |
94 | to enable compression. | 95 | to enable compression. |
96 | .It Fl F Ar ssh_config | ||
97 | Specifies an alternative | ||
98 | per-user configuration file for | ||
99 | .Nm ssh . | ||
100 | This option is directly passed to | ||
101 | .Xr ssh 1 . | ||
95 | .It Fl P Ar port | 102 | .It Fl P Ar port |
96 | Specifies the port to connect to on the remote host. | 103 | Specifies the port to connect to on the remote host. |
97 | Note that this option is written with a capital | 104 | Note that this option is written with a capital |
@@ -75,7 +75,7 @@ | |||
75 | */ | 75 | */ |
76 | 76 | ||
77 | #include "includes.h" | 77 | #include "includes.h" |
78 | RCSID("$OpenBSD: scp.c,v 1.82 2001/09/12 18:18:25 stevesk Exp $"); | 78 | RCSID("$OpenBSD: scp.c,v 1.83 2001/09/17 17:57:56 stevesk Exp $"); |
79 | 79 | ||
80 | #include "xmalloc.h" | 80 | #include "xmalloc.h" |
81 | #include "atomicio.h" | 81 | #include "atomicio.h" |
@@ -241,7 +241,7 @@ main(argc, argv) | |||
241 | addargs(&args, "-oFallBackToRsh no"); | 241 | addargs(&args, "-oFallBackToRsh no"); |
242 | 242 | ||
243 | fflag = tflag = 0; | 243 | fflag = tflag = 0; |
244 | while ((ch = getopt(argc, argv, "dfprtvBCc:i:P:q46S:o:")) != -1) | 244 | while ((ch = getopt(argc, argv, "dfprtvBCc:i:P:q46S:o:F:")) != -1) |
245 | switch (ch) { | 245 | switch (ch) { |
246 | /* User-visible flags. */ | 246 | /* User-visible flags. */ |
247 | case '4': | 247 | case '4': |
@@ -252,6 +252,7 @@ main(argc, argv) | |||
252 | case 'o': | 252 | case 'o': |
253 | case 'c': | 253 | case 'c': |
254 | case 'i': | 254 | case 'i': |
255 | case 'F': | ||
255 | addargs(&args, "-%c%s", ch, optarg); | 256 | addargs(&args, "-%c%s", ch, optarg); |
256 | break; | 257 | break; |
257 | case 'P': | 258 | case 'P': |
@@ -954,9 +955,9 @@ response() | |||
954 | void | 955 | void |
955 | usage() | 956 | usage() |
956 | { | 957 | { |
957 | (void) fprintf(stderr, "usage: scp " | 958 | (void) fprintf(stderr, |
958 | "[-pqrvBC46] [-S ssh] [-P port] [-c cipher] [-i identity] " | 959 | "usage: scp [-pqrvBC46] [-F config] [-S ssh] [-P port] [-c cipher] [-i identity]\n" |
959 | "[-o option] f1 f2\n" | 960 | " [-o option] f1 f2\n" |
960 | " or: scp [options] f1 ... fn directory\n"); | 961 | " or: scp [options] f1 ... fn directory\n"); |
961 | exit(1); | 962 | exit(1); |
962 | } | 963 | } |
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: sftp.1,v 1.24 2001/09/05 06:23:07 deraadt Exp $ | 1 | .\" $OpenBSD: sftp.1,v 1.25 2001/09/17 17:57:57 stevesk Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 2001 Damien Miller. All rights reserved. | 3 | .\" Copyright (c) 2001 Damien Miller. All rights reserved. |
4 | .\" | 4 | .\" |
@@ -32,6 +32,7 @@ | |||
32 | .Nm sftp | 32 | .Nm sftp |
33 | .Op Fl vC | 33 | .Op Fl vC |
34 | .Op Fl b Ar batchfile | 34 | .Op Fl b Ar batchfile |
35 | .Op Fl F Ar ssh_config | ||
35 | .Op Fl o Ar ssh_option | 36 | .Op Fl o Ar ssh_option |
36 | .Op Ar host | 37 | .Op Ar host |
37 | .Nm sftp | 38 | .Nm sftp |
@@ -77,6 +78,12 @@ and | |||
77 | Enables compression (via ssh's | 78 | Enables compression (via ssh's |
78 | .Fl C | 79 | .Fl C |
79 | flag) | 80 | flag) |
81 | .It Fl F Ar ssh_config | ||
82 | Specifies an alternative | ||
83 | per-user configuration file for | ||
84 | .Nm ssh . | ||
85 | This option is directly passed to | ||
86 | .Xr ssh 1 . | ||
80 | .It Fl o Ar ssh_option | 87 | .It Fl o Ar ssh_option |
81 | Can be used to pass options to | 88 | Can be used to pass options to |
82 | .Nm ssh | 89 | .Nm ssh |
@@ -24,7 +24,7 @@ | |||
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | 26 | ||
27 | RCSID("$OpenBSD: sftp.c,v 1.18 2001/06/23 15:12:20 itojun Exp $"); | 27 | RCSID("$OpenBSD: sftp.c,v 1.19 2001/09/17 17:57:57 stevesk Exp $"); |
28 | 28 | ||
29 | /* XXX: commandline mode */ | 29 | /* XXX: commandline mode */ |
30 | /* XXX: short-form remote directory listings (like 'ls -C') */ | 30 | /* XXX: short-form remote directory listings (like 'ls -C') */ |
@@ -93,7 +93,9 @@ connect_to_server(char **args, int *in, int *out, pid_t *sshpid) | |||
93 | static void | 93 | static void |
94 | usage(void) | 94 | usage(void) |
95 | { | 95 | { |
96 | fprintf(stderr, "usage: sftp [-1vC] [-b batchfile] [-osshopt=value] [user@]host[:file [file]]\n"); | 96 | fprintf(stderr, |
97 | "usage: sftp [-1vC] [-b batchfile] [-F config] [-o option]\n" | ||
98 | " [user@]host[:file [file]]\n"); | ||
97 | exit(1); | 99 | exit(1); |
98 | } | 100 | } |
99 | 101 | ||
@@ -119,7 +121,7 @@ main(int argc, char **argv) | |||
119 | ll = SYSLOG_LEVEL_INFO; | 121 | ll = SYSLOG_LEVEL_INFO; |
120 | infile = stdin; /* Read from STDIN unless changed by -b */ | 122 | infile = stdin; /* Read from STDIN unless changed by -b */ |
121 | 123 | ||
122 | while ((ch = getopt(argc, argv, "1hvCo:s:S:b:")) != -1) { | 124 | while ((ch = getopt(argc, argv, "1hvCo:s:S:b:F:")) != -1) { |
123 | switch (ch) { | 125 | switch (ch) { |
124 | case 'C': | 126 | case 'C': |
125 | addargs(&args, "-C"); | 127 | addargs(&args, "-C"); |
@@ -131,8 +133,9 @@ main(int argc, char **argv) | |||
131 | } | 133 | } |
132 | debug_level++; | 134 | debug_level++; |
133 | break; | 135 | break; |
136 | case 'F': | ||
134 | case 'o': | 137 | case 'o': |
135 | addargs(&args, "-o%s", optarg); | 138 | addargs(&args, "-%c%s", ch, optarg); |
136 | break; | 139 | break; |
137 | case '1': | 140 | case '1': |
138 | sshver = 1; | 141 | sshver = 1; |