Bugzilla – Attachment 3328 Details for
Bug 831
Allow agent forwarding in sftp & scp
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Add -A option to scp
scpA.diff (text/plain), 1.92 KB, created by
Christian Weisgerber
on 2019-09-13 22:14:15 AEST
(
hide
)
Description:
Add -A option to scp
Filename:
MIME Type:
Creator:
Christian Weisgerber
Created:
2019-09-13 22:14:15 AEST
Size:
1.92 KB
patch
obsolete
>Index: scp.1 >=================================================================== >RCS file: /cvs/src/usr.bin/ssh/scp.1,v >retrieving revision 1.86 >diff -u -p -r1.86 scp.1 >--- scp.1 12 Jun 2019 11:31:50 -0000 1.86 >+++ scp.1 4 Sep 2019 20:36:01 -0000 >@@ -18,7 +18,7 @@ > .Nd secure copy (remote file copy program) > .Sh SYNOPSIS > .Nm scp >-.Op Fl 346BCpqrTv >+.Op Fl 346ABCpqrTv > .Op Fl c Ar cipher > .Op Fl F Ar ssh_config > .Op Fl i Ar identity_file >@@ -83,6 +83,11 @@ to use IPv4 addresses only. > Forces > .Nm > to use IPv6 addresses only. >+.It Fl A >+Enables forwarding of the authentication agent connection for copies >+between two remote hosts. >+This option is directly passed to >+.Xr ssh 1 . > .It Fl B > Selects batch mode (prevents asking for passwords or passphrases). > .It Fl C >Index: scp.c >=================================================================== >RCS file: /cvs/src/usr.bin/ssh/scp.c,v >retrieving revision 1.206 >diff -u -p -r1.206 scp.c >--- scp.c 9 Sep 2019 02:31:19 -0000 1.206 >+++ scp.c 9 Sep 2019 11:48:43 -0000 >@@ -404,7 +404,7 @@ main(int argc, char **argv) > > fflag = Tflag = tflag = 0; > while ((ch = getopt(argc, argv, >- "dfl:prtTvBCc:i:P:q12346S:o:F:J:")) != -1) { >+ "dfl:prtTvABCc:i:P:q12346S:o:F:J:")) != -1) { > switch (ch) { > /* User-visible flags. */ > case '1': >@@ -437,6 +437,9 @@ main(int argc, char **argv) > if (sshport <= 0) > fatal("bad port \"%s\"\n", optarg); > break; >+ case 'A': >+ addargs(&remote_remote_args, "-A"); >+ break; > case 'B': > addargs(&remote_remote_args, "-oBatchmode=yes"); > addargs(&args, "-oBatchmode=yes"); >@@ -1566,7 +1569,7 @@ void > usage(void) > { > (void) fprintf(stderr, >- "usage: scp [-346BCpqrTv] [-c cipher] [-F ssh_config] [-i identity_file]\n" >+ "usage: scp [-346ABCpqrTv] [-c cipher] [-F ssh_config] [-i identity_file]\n" > " [-J destination] [-l limit] [-o ssh_option] [-P port]\n" > " [-S program] source ... target\n"); > exit(1);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 831
:
594
|
2683
|
3328
|
3437