version 1.200, 2020/04/03 05:53:52 |
version 1.201, 2020/08/03 02:43:41 |
|
|
extern char *__progname; |
extern char *__progname; |
|
|
fprintf(stderr, |
fprintf(stderr, |
"usage: %s [-46aCfNpqrv] [-B buffer_size] [-b batchfile] [-c cipher]\n" |
"usage: %s [-46AaCfNpqrv] [-B buffer_size] [-b batchfile] [-c cipher]\n" |
" [-D sftp_server_path] [-F ssh_config] [-i identity_file]\n" |
" [-D sftp_server_path] [-F ssh_config] [-i identity_file]\n" |
" [-J destination] [-l limit] [-o ssh_option] [-P port]\n" |
" [-J destination] [-l limit] [-o ssh_option] [-P port]\n" |
" [-R num_requests] [-S program] [-s subsystem | sftp_server]\n" |
" [-R num_requests] [-S program] [-s subsystem | sftp_server]\n" |
|
|
args.list = NULL; |
args.list = NULL; |
addargs(&args, "%s", ssh_program); |
addargs(&args, "%s", ssh_program); |
addargs(&args, "-oForwardX11 no"); |
addargs(&args, "-oForwardX11 no"); |
addargs(&args, "-oForwardAgent no"); |
|
addargs(&args, "-oPermitLocalCommand no"); |
addargs(&args, "-oPermitLocalCommand no"); |
addargs(&args, "-oClearAllForwardings yes"); |
addargs(&args, "-oClearAllForwardings yes"); |
|
|
|
|
infile = stdin; |
infile = stdin; |
|
|
while ((ch = getopt(argc, argv, |
while ((ch = getopt(argc, argv, |
"1246afhNpqrvCc:D:i:l:o:s:S:b:B:F:J:P:R:")) != -1) { |
"1246AafhNpqrvCc:D:i:l:o:s:S:b:B:F:J:P:R:")) != -1) { |
switch (ch) { |
switch (ch) { |
/* Passed through to ssh(1) */ |
/* Passed through to ssh(1) */ |
|
case 'A': |
case '4': |
case '4': |
case '6': |
case '6': |
case 'C': |
case 'C': |
|
|
usage(); |
usage(); |
} |
} |
} |
} |
|
|
|
/* Do this last because we want the user to be able to override it */ |
|
addargs(&args, "-oForwardAgent no"); |
|
|
if (!isatty(STDERR_FILENO)) |
if (!isatty(STDERR_FILENO)) |
showprogress = 0; |
showprogress = 0; |