diff options
-rw-r--r-- | scp.1 | 9 | ||||
-rw-r--r-- | scp.c | 3 |
2 files changed, 8 insertions, 4 deletions
@@ -8,9 +8,9 @@ | |||
8 | .\" | 8 | .\" |
9 | .\" Created: Sun May 7 00:14:37 1995 ylo | 9 | .\" Created: Sun May 7 00:14:37 1995 ylo |
10 | .\" | 10 | .\" |
11 | .\" $OpenBSD: scp.1,v 1.87 2019/11/30 07:07:59 jmc Exp $ | 11 | .\" $OpenBSD: scp.1,v 1.88 2020/04/30 17:07:10 markus Exp $ |
12 | .\" | 12 | .\" |
13 | .Dd $Mdocdate: November 30 2019 $ | 13 | .Dd $Mdocdate: April 30 2020 $ |
14 | .Dt SCP 1 | 14 | .Dt SCP 1 |
15 | .Os | 15 | .Os |
16 | .Sh NAME | 16 | .Sh NAME |
@@ -74,7 +74,10 @@ The options are as follows: | |||
74 | Copies between two remote hosts are transferred through the local host. | 74 | Copies between two remote hosts are transferred through the local host. |
75 | Without this option the data is copied directly between the two remote | 75 | Without this option the data is copied directly between the two remote |
76 | hosts. | 76 | hosts. |
77 | Note that this option disables the progress meter. | 77 | Note that this option disables the progress meter and selects batch mode |
78 | for the second host, since | ||
79 | .Nm scp | ||
80 | cannot ask passwords or passphrases for both hosts. | ||
78 | .It Fl 4 | 81 | .It Fl 4 |
79 | Forces | 82 | Forces |
80 | .Nm | 83 | .Nm |
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: scp.c,v 1.207 2020/01/23 07:10:22 dtucker Exp $ */ | 1 | /* $OpenBSD: scp.c,v 1.208 2020/04/30 17:07:10 markus Exp $ */ |
2 | /* | 2 | /* |
3 | * scp - secure remote copy. This is basically patched BSD rcp which | 3 | * scp - secure remote copy. This is basically patched BSD rcp which |
4 | * uses ssh to do the data transfer (instead of using rcmd). | 4 | * uses ssh to do the data transfer (instead of using rcmd). |
@@ -348,6 +348,7 @@ do_cmd2(char *host, char *remuser, int port, char *cmd, int fdin, int fdout) | |||
348 | addargs(&args, "-l"); | 348 | addargs(&args, "-l"); |
349 | addargs(&args, "%s", remuser); | 349 | addargs(&args, "%s", remuser); |
350 | } | 350 | } |
351 | addargs(&args, "-oBatchMode=yes"); | ||
351 | addargs(&args, "--"); | 352 | addargs(&args, "--"); |
352 | addargs(&args, "%s", host); | 353 | addargs(&args, "%s", host); |
353 | addargs(&args, "%s", cmd); | 354 | addargs(&args, "%s", cmd); |