mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +00:00
Update docs/usage for 'plink -shareexists'.
This commit is contained in:
parent
9dd9860cc8
commit
48eafd66aa
@ -2353,6 +2353,9 @@ with sharing enabled, then it can act as a downstream and use an
|
||||
existing SSH connection set up by an instance of GUI PuTTY. The one
|
||||
special case is that PSCP and PSFTP will \e{never} act as upstreams.
|
||||
|
||||
It is possible to test programmatically for the existence of a live
|
||||
upstream using Plink. See \k{plink-option-shareexists}.
|
||||
|
||||
\H{config-ssh-kex} The Kex panel
|
||||
|
||||
The Kex panel (short for \q{\i{key exchange}}) allows you to configure
|
||||
|
@ -766,6 +766,7 @@ saved sessions from
|
||||
|
||||
\IM{-batch-plink} \c{-batch} Plink command-line option
|
||||
\IM{-s-plink} \c{-s} Plink command-line option
|
||||
\IM{-shareexists-plink} \c{-shareexists} Plink command-line option
|
||||
|
||||
\IM{subsystem} subsystem, SSH
|
||||
\IM{subsystem} SSH subsystem
|
||||
|
@ -41,7 +41,7 @@ use Plink:
|
||||
|
||||
\c Z:\sysosd>plink
|
||||
\c Plink: command-line connection utility
|
||||
\c Release 0.65
|
||||
\c Release 0.XX
|
||||
\c Usage: plink [options] [user@]host [command]
|
||||
\c ("host" can also be a PuTTY saved session name)
|
||||
\c Options:
|
||||
@ -80,6 +80,8 @@ use Plink:
|
||||
\c -N don't start a shell/command (SSH-2 only)
|
||||
\c -nc host:port
|
||||
\c open tunnel in place of session (SSH-2 only)
|
||||
\c -shareexists
|
||||
\c test whether a connection-sharing upstream exists
|
||||
|
||||
Once this works, you are ready to use Plink.
|
||||
|
||||
@ -230,6 +232,27 @@ line.
|
||||
|
||||
(This option is only meaningful with the SSH-2 protocol.)
|
||||
|
||||
\S2{plink-option-shareexists} \I{-shareexists-plink}\c{-shareexists}:
|
||||
test for connection-sharing upstream
|
||||
|
||||
This option does not make a new connection; instead it allows testing
|
||||
for the presence of an existing connection that can be shared.
|
||||
(See \k{config-ssh-sharing} for more information about SSH connection
|
||||
sharing.)
|
||||
|
||||
A Plink invocation of the form:
|
||||
|
||||
\c plink -shareexists <session>
|
||||
\e iiiiiiiii
|
||||
|
||||
will test whether there is currently a viable \q{upstream} for the
|
||||
session in question, which can be specified using any syntax you'd
|
||||
normally use with Plink to make an actual connection (a host/port
|
||||
number, a bare saved session name, \c{-load}, etc). It returns a
|
||||
zero exit status if a usable \q{upstream} exists, nonzero otherwise.
|
||||
|
||||
(This option is only meaningful with the SSH-2 protocol.)
|
||||
|
||||
\H{plink-batch} Using Plink in \i{batch files} and \i{scripts}
|
||||
|
||||
Once you have set up Plink to be able to log in to a remote server
|
||||
|
@ -581,6 +581,8 @@ static void usage(void)
|
||||
printf(" -N don't start a shell/command (SSH-2 only)\n");
|
||||
printf(" -nc host:port\n");
|
||||
printf(" open tunnel in place of session (SSH-2 only)\n");
|
||||
printf(" -shareexists\n");
|
||||
printf(" test whether a connection-sharing upstream exists\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -212,6 +212,8 @@ static void usage(void)
|
||||
printf(" -N don't start a shell/command (SSH-2 only)\n");
|
||||
printf(" -nc host:port\n");
|
||||
printf(" open tunnel in place of session (SSH-2 only)\n");
|
||||
printf(" -shareexists\n");
|
||||
printf(" test whether a connection-sharing upstream exists\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user