mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
- stevesk@cvs.openbsd.org 2001/09/17 17:57:57
[scp.1 scp.c sftp.1 sftp.c] add -Fssh_config option; ok markus@
This commit is contained in:
parent
99b8febe11
commit
1e24324164
@ -8,6 +8,10 @@
|
|||||||
put somewhere sane. Add Ssh.bin to manifest.
|
put somewhere sane. Add Ssh.bin to manifest.
|
||||||
- (djm) Make smartcard support conditional in Redhat RPM spec
|
- (djm) Make smartcard support conditional in Redhat RPM spec
|
||||||
- (bal) LICENCE update. Has not been done in a while.
|
- (bal) LICENCE update. Has not been done in a while.
|
||||||
|
- OpenBSD CVS Sync
|
||||||
|
- stevesk@cvs.openbsd.org 2001/09/17 17:57:57
|
||||||
|
[scp.1 scp.c sftp.1 sftp.c]
|
||||||
|
add -Fssh_config option; ok markus@
|
||||||
|
|
||||||
20010917
|
20010917
|
||||||
- (djm) x11-ssh-askpass-1.2.4 in RPM spec, revert workarounds
|
- (djm) x11-ssh-askpass-1.2.4 in RPM spec, revert workarounds
|
||||||
@ -6468,4 +6472,4 @@
|
|||||||
- Wrote replacements for strlcpy and mkdtemp
|
- Wrote replacements for strlcpy and mkdtemp
|
||||||
- Released 1.0pre1
|
- Released 1.0pre1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.1531 2001/09/18 05:36:27 mouring Exp $
|
$Id: ChangeLog,v 1.1532 2001/09/18 05:38:44 mouring Exp $
|
||||||
|
9
scp.1
9
scp.1
@ -9,7 +9,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" Created: Sun May 7 00:14:37 1995 ylo
|
.\" Created: Sun May 7 00:14:37 1995 ylo
|
||||||
.\"
|
.\"
|
||||||
.\" $OpenBSD: scp.1,v 1.18 2001/09/05 06:23:07 deraadt Exp $
|
.\" $OpenBSD: scp.1,v 1.19 2001/09/17 17:57:56 stevesk Exp $
|
||||||
.\"
|
.\"
|
||||||
.Dd September 25, 1999
|
.Dd September 25, 1999
|
||||||
.Dt SCP 1
|
.Dt SCP 1
|
||||||
@ -20,6 +20,7 @@
|
|||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm scp
|
.Nm scp
|
||||||
.Op Fl pqrvC46
|
.Op Fl pqrvC46
|
||||||
|
.Op Fl F Ar ssh_config
|
||||||
.Op Fl S Ar program
|
.Op Fl S Ar program
|
||||||
.Op Fl P Ar port
|
.Op Fl P Ar port
|
||||||
.Op Fl c Ar cipher
|
.Op Fl c Ar cipher
|
||||||
@ -92,6 +93,12 @@ Passes the
|
|||||||
flag to
|
flag to
|
||||||
.Xr ssh 1
|
.Xr ssh 1
|
||||||
to enable compression.
|
to enable compression.
|
||||||
|
.It Fl F Ar ssh_config
|
||||||
|
Specifies an alternative
|
||||||
|
per-user configuration file for
|
||||||
|
.Nm ssh .
|
||||||
|
This option is directly passed to
|
||||||
|
.Xr ssh 1 .
|
||||||
.It Fl P Ar port
|
.It Fl P Ar port
|
||||||
Specifies the port to connect to on the remote host.
|
Specifies the port to connect to on the remote host.
|
||||||
Note that this option is written with a capital
|
Note that this option is written with a capital
|
||||||
|
11
scp.c
11
scp.c
@ -75,7 +75,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$OpenBSD: scp.c,v 1.82 2001/09/12 18:18:25 stevesk Exp $");
|
RCSID("$OpenBSD: scp.c,v 1.83 2001/09/17 17:57:56 stevesk Exp $");
|
||||||
|
|
||||||
#include "xmalloc.h"
|
#include "xmalloc.h"
|
||||||
#include "atomicio.h"
|
#include "atomicio.h"
|
||||||
@ -241,7 +241,7 @@ main(argc, argv)
|
|||||||
addargs(&args, "-oFallBackToRsh no");
|
addargs(&args, "-oFallBackToRsh no");
|
||||||
|
|
||||||
fflag = tflag = 0;
|
fflag = tflag = 0;
|
||||||
while ((ch = getopt(argc, argv, "dfprtvBCc:i:P:q46S:o:")) != -1)
|
while ((ch = getopt(argc, argv, "dfprtvBCc:i:P:q46S:o:F:")) != -1)
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
/* User-visible flags. */
|
/* User-visible flags. */
|
||||||
case '4':
|
case '4':
|
||||||
@ -252,6 +252,7 @@ main(argc, argv)
|
|||||||
case 'o':
|
case 'o':
|
||||||
case 'c':
|
case 'c':
|
||||||
case 'i':
|
case 'i':
|
||||||
|
case 'F':
|
||||||
addargs(&args, "-%c%s", ch, optarg);
|
addargs(&args, "-%c%s", ch, optarg);
|
||||||
break;
|
break;
|
||||||
case 'P':
|
case 'P':
|
||||||
@ -954,9 +955,9 @@ response()
|
|||||||
void
|
void
|
||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
(void) fprintf(stderr, "usage: scp "
|
(void) fprintf(stderr,
|
||||||
"[-pqrvBC46] [-S ssh] [-P port] [-c cipher] [-i identity] "
|
"usage: scp [-pqrvBC46] [-F config] [-S ssh] [-P port] [-c cipher] [-i identity]\n"
|
||||||
"[-o option] f1 f2\n"
|
" [-o option] f1 f2\n"
|
||||||
" or: scp [options] f1 ... fn directory\n");
|
" or: scp [options] f1 ... fn directory\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
9
sftp.1
9
sftp.1
@ -1,4 +1,4 @@
|
|||||||
.\" $OpenBSD: sftp.1,v 1.24 2001/09/05 06:23:07 deraadt Exp $
|
.\" $OpenBSD: sftp.1,v 1.25 2001/09/17 17:57:57 stevesk Exp $
|
||||||
.\"
|
.\"
|
||||||
.\" Copyright (c) 2001 Damien Miller. All rights reserved.
|
.\" Copyright (c) 2001 Damien Miller. All rights reserved.
|
||||||
.\"
|
.\"
|
||||||
@ -32,6 +32,7 @@
|
|||||||
.Nm sftp
|
.Nm sftp
|
||||||
.Op Fl vC
|
.Op Fl vC
|
||||||
.Op Fl b Ar batchfile
|
.Op Fl b Ar batchfile
|
||||||
|
.Op Fl F Ar ssh_config
|
||||||
.Op Fl o Ar ssh_option
|
.Op Fl o Ar ssh_option
|
||||||
.Op Ar host
|
.Op Ar host
|
||||||
.Nm sftp
|
.Nm sftp
|
||||||
@ -77,6 +78,12 @@ and
|
|||||||
Enables compression (via ssh's
|
Enables compression (via ssh's
|
||||||
.Fl C
|
.Fl C
|
||||||
flag)
|
flag)
|
||||||
|
.It Fl F Ar ssh_config
|
||||||
|
Specifies an alternative
|
||||||
|
per-user configuration file for
|
||||||
|
.Nm ssh .
|
||||||
|
This option is directly passed to
|
||||||
|
.Xr ssh 1 .
|
||||||
.It Fl o Ar ssh_option
|
.It Fl o Ar ssh_option
|
||||||
Can be used to pass options to
|
Can be used to pass options to
|
||||||
.Nm ssh
|
.Nm ssh
|
||||||
|
11
sftp.c
11
sftp.c
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
|
|
||||||
RCSID("$OpenBSD: sftp.c,v 1.18 2001/06/23 15:12:20 itojun Exp $");
|
RCSID("$OpenBSD: sftp.c,v 1.19 2001/09/17 17:57:57 stevesk Exp $");
|
||||||
|
|
||||||
/* XXX: commandline mode */
|
/* XXX: commandline mode */
|
||||||
/* XXX: short-form remote directory listings (like 'ls -C') */
|
/* 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)
|
|||||||
static void
|
static void
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "usage: sftp [-1vC] [-b batchfile] [-osshopt=value] [user@]host[:file [file]]\n");
|
fprintf(stderr,
|
||||||
|
"usage: sftp [-1vC] [-b batchfile] [-F config] [-o option]\n"
|
||||||
|
" [user@]host[:file [file]]\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -119,7 +121,7 @@ main(int argc, char **argv)
|
|||||||
ll = SYSLOG_LEVEL_INFO;
|
ll = SYSLOG_LEVEL_INFO;
|
||||||
infile = stdin; /* Read from STDIN unless changed by -b */
|
infile = stdin; /* Read from STDIN unless changed by -b */
|
||||||
|
|
||||||
while ((ch = getopt(argc, argv, "1hvCo:s:S:b:")) != -1) {
|
while ((ch = getopt(argc, argv, "1hvCo:s:S:b:F:")) != -1) {
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
case 'C':
|
case 'C':
|
||||||
addargs(&args, "-C");
|
addargs(&args, "-C");
|
||||||
@ -131,8 +133,9 @@ main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
debug_level++;
|
debug_level++;
|
||||||
break;
|
break;
|
||||||
|
case 'F':
|
||||||
case 'o':
|
case 'o':
|
||||||
addargs(&args, "-o%s", optarg);
|
addargs(&args, "-%c%s", ch, optarg);
|
||||||
break;
|
break;
|
||||||
case '1':
|
case '1':
|
||||||
sshver = 1;
|
sshver = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user