mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Document -proxycmd in help and man pages.
Also, in the main documentation, note the hazard that backslashes in the command argument must be doubled.
This commit is contained in:
parent
7e9cb921f6
commit
b14c3443d3
@ -56,6 +56,27 @@ to aid in verifying new files released by the PuTTY team.
|
||||
|
||||
\dd Force serial mode.
|
||||
|
||||
\dt \cw{\-proxycmd} \e{command}
|
||||
|
||||
\dd Instead of making a TCP connection, use \e{command} as a proxy;
|
||||
network traffic will be redirected to the standard input and output
|
||||
of \e{command}. \e{command} must be a single word, so is likely to
|
||||
need quoting by the shell.
|
||||
|
||||
\lcont{
|
||||
The special strings \cw{%host} and \cw{%port} in \e{command} will be
|
||||
replaced by the hostname and port number you want to connect to; to get
|
||||
a literal \c{%} sign, enter \c{%%}.
|
||||
|
||||
Backslash escapes are also supported, such as sequences like \c{\\n}
|
||||
being replaced by a literal newline; to get a literal backslash,
|
||||
enter \c{\\\\}. (Further escaping may be required by the shell.)
|
||||
|
||||
(See the main PuTTY manual for full details of the supported \cw{%}-
|
||||
and backslash-delimited tokens, although most of them are probably not
|
||||
very useful in this context.)
|
||||
}
|
||||
|
||||
\dt \cw{-P} \e{port}
|
||||
|
||||
\dd Connect to port \e{port}.
|
||||
|
@ -65,6 +65,27 @@ to aid in verifying new files released by the PuTTY team.
|
||||
|
||||
\dd Connect to port \e{port}.
|
||||
|
||||
\dt \cw{\-proxycmd} \e{command}
|
||||
|
||||
\dd Instead of making a TCP connection, use \e{command} as a proxy;
|
||||
network traffic will be redirected to the standard input and output
|
||||
of \e{command}. \e{command} must be a single word, so is likely to
|
||||
need quoting by the shell.
|
||||
|
||||
\lcont{
|
||||
The special strings \cw{%host} and \cw{%port} in \e{command} will be
|
||||
replaced by the hostname and port number you want to connect to; to get
|
||||
a literal \c{%} sign, enter \c{%%}.
|
||||
|
||||
Backslash escapes are also supported, such as sequences like \c{\\n}
|
||||
being replaced by a literal newline; to get a literal backslash,
|
||||
enter \c{\\\\}. (Further escaping may be required by the shell.)
|
||||
|
||||
(See the main PuTTY manual for full details of the supported \cw{%}-
|
||||
and backslash-delimited tokens, although most of them are probably not
|
||||
very useful in this context.)
|
||||
}
|
||||
|
||||
\dt \cw{-l} \e{user}
|
||||
|
||||
\dd Set remote username to \e{user}.
|
||||
|
@ -53,6 +53,27 @@ to aid in verifying new files released by the PuTTY team.
|
||||
|
||||
\dd Connect to port \e{port}.
|
||||
|
||||
\dt \cw{\-proxycmd} \e{command}
|
||||
|
||||
\dd Instead of making a TCP connection, use \e{command} as a proxy;
|
||||
network traffic will be redirected to the standard input and output
|
||||
of \e{command}. \e{command} must be a single word, so is likely to
|
||||
need quoting by the shell.
|
||||
|
||||
\lcont{
|
||||
The special strings \cw{%host} and \cw{%port} in \e{command} will be
|
||||
replaced by the hostname and port number you want to connect to; to get
|
||||
a literal \c{%} sign, enter \c{%%}.
|
||||
|
||||
Backslash escapes are also supported, such as sequences like \c{\\n}
|
||||
being replaced by a literal newline; to get a literal backslash,
|
||||
enter \c{\\\\}. (Further escaping may be required by the shell.)
|
||||
|
||||
(See the main PuTTY manual for full details of the supported \cw{%}-
|
||||
and backslash-delimited tokens, although most of them are probably not
|
||||
very useful in this context.)
|
||||
}
|
||||
|
||||
\dt \cw{-l} \e{user}
|
||||
|
||||
\dd Set remote username to \e{user}.
|
||||
|
@ -165,6 +165,27 @@ configuration box first.
|
||||
|
||||
\dd Select the protocol \cw{puttytel} will use to make the connection.
|
||||
|
||||
\dt \cw{\-proxycmd} \e{command}
|
||||
|
||||
\dd Instead of making a TCP connection, use \e{command} as a proxy;
|
||||
network traffic will be redirected to the standard input and output
|
||||
of \e{command}. \e{command} must be a single word, so is likely to
|
||||
need quoting by the shell.
|
||||
|
||||
\lcont{
|
||||
The special strings \cw{%host} and \cw{%port} in \e{command} will be
|
||||
replaced by the hostname and port number you want to connect to; to get
|
||||
a literal \c{%} sign, enter \c{%%}.
|
||||
|
||||
Backslash escapes are also supported, such as sequences like \c{\\n}
|
||||
being replaced by a literal newline; to get a literal backslash,
|
||||
enter \c{\\\\}. (Further escaping may be required by the shell.)
|
||||
|
||||
(See the main PuTTY manual for full details of the supported \cw{%}-
|
||||
and backslash-delimited tokens, although most of them are probably not
|
||||
very useful in this context.)
|
||||
}
|
||||
|
||||
\dt \cw{\-l} \e{username}
|
||||
|
||||
\dd Specify the username to use when logging in to the server.
|
||||
|
@ -178,6 +178,27 @@ configuration box first.
|
||||
|
||||
\dd Select the protocol \cw{putty} will use to make the connection.
|
||||
|
||||
\dt \cw{\-proxycmd} \e{command}
|
||||
|
||||
\dd Instead of making a TCP connection, use \e{command} as a proxy;
|
||||
network traffic will be redirected to the standard input and output
|
||||
of \e{command}. \e{command} must be a single word, so is likely to
|
||||
need quoting by the shell.
|
||||
|
||||
\lcont{
|
||||
The special strings \cw{%host} and \cw{%port} in \e{command} will be
|
||||
replaced by the hostname and port number you want to connect to; to get
|
||||
a literal \c{%} sign, enter \c{%%}.
|
||||
|
||||
Backslash escapes are also supported, such as sequences like \c{\\n}
|
||||
being replaced by a literal newline; to get a literal backslash,
|
||||
enter \c{\\\\}. (Further escaping may be required by the shell.)
|
||||
|
||||
(See the main PuTTY manual for full details of the supported \cw{%}-
|
||||
and backslash-delimited tokens, although most of them are probably not
|
||||
very useful in this context.)
|
||||
}
|
||||
|
||||
\dt \cw{\-l} \e{username}
|
||||
|
||||
\dd Specify the username to use when logging in to the server.
|
||||
|
@ -1009,7 +1009,10 @@ on the local machine and using it as a proxy for the network
|
||||
connection. It expects a shell command string as an argument.
|
||||
|
||||
See \k{config-proxy-type} for more information on this, and on other
|
||||
proxy settings.
|
||||
proxy settings. In particular, note that since the special sequences
|
||||
described there are understood in the argument string, literal
|
||||
backslashes must be doubled (if you want \c{\\} in your command, you
|
||||
must put \c{\\\\} on the command line).
|
||||
|
||||
\S2{using-cmdline-restrict-acl} \i\c{-restrict-acl}: restrict the
|
||||
\i{Windows process ACL}
|
||||
|
2
pscp.c
2
pscp.c
@ -2244,6 +2244,8 @@ static void usage(void)
|
||||
printf(" -hostkey aa:bb:cc:...\n");
|
||||
printf(" manually specify a host key (may be repeated)\n");
|
||||
printf(" -batch disable all interactive prompts\n");
|
||||
printf(" -proxycmd command\n");
|
||||
printf(" use 'command' as local proxy\n");
|
||||
printf(" -unsafe allow server-side wildcards (DANGEROUS)\n");
|
||||
printf(" -sftp force use of SFTP protocol\n");
|
||||
printf(" -scp force use of SCP protocol\n");
|
||||
|
2
psftp.c
2
psftp.c
@ -2657,6 +2657,8 @@ static void usage(void)
|
||||
printf(" -hostkey aa:bb:cc:...\n");
|
||||
printf(" manually specify a host key (may be repeated)\n");
|
||||
printf(" -batch disable all interactive prompts\n");
|
||||
printf(" -proxycmd command\n");
|
||||
printf(" use 'command' as local proxy\n");
|
||||
printf(" -sshlog file\n");
|
||||
printf(" -sshrawlog file\n");
|
||||
printf(" log protocol details to a file\n");
|
||||
|
@ -558,6 +558,8 @@ static void usage(void)
|
||||
printf(" -P port connect to specified port\n");
|
||||
printf(" -l user connect with specified username\n");
|
||||
printf(" -batch disable all interactive prompts\n");
|
||||
printf(" -proxycmd command\n");
|
||||
printf(" use 'command' as local proxy\n");
|
||||
printf(" -sercfg configuration-string (e.g. 19200,8,n,1,X)\n");
|
||||
printf(" Specify the serial configuration (serial only)\n");
|
||||
printf("The following options only apply to SSH connections:\n");
|
||||
|
@ -187,6 +187,8 @@ static void usage(void)
|
||||
printf(" -P port connect to specified port\n");
|
||||
printf(" -l user connect with specified username\n");
|
||||
printf(" -batch disable all interactive prompts\n");
|
||||
printf(" -proxycmd command\n");
|
||||
printf(" use 'command' as local proxy\n");
|
||||
printf(" -sercfg configuration-string (e.g. 19200,8,n,1,X)\n");
|
||||
printf(" Specify the serial configuration (serial only)\n");
|
||||
printf("The following options only apply to SSH connections:\n");
|
||||
|
Loading…
Reference in New Issue
Block a user