man-pl.but 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. \cfg{man-identity}{plink}{1}{2004-03-24}{PuTTY tool suite}{PuTTY tool suite}
  2. \H{plink-manpage} Man page for Plink
  3. \S{plink-manpage-name} NAME
  4. \cw{plink} \- PuTTY link, command line network connection tool
  5. \S{plink-manpage-synopsis} SYNOPSIS
  6. \c plink [options] [user@]host [command]
  7. \e bbbbb iiiiiii iiiib iiii iiiiiii
  8. \S{plink-manpage-description} DESCRIPTION
  9. \cw{plink} is a network connection tool supporting several protocols.
  10. \S{plink-manpage-options} OPTIONS
  11. The command-line options supported by \cw{plink} are:
  12. \dt \cw{-V}
  13. \dd Show version information and exit.
  14. \dt \cw{-pgpfp}
  15. \dd Display the fingerprints of the PuTTY PGP Master Keys and exit,
  16. to aid in verifying new files released by the PuTTY team.
  17. \dt \cw{-v}
  18. \dd Show verbose messages.
  19. \dt \cw{-load} \e{session}
  20. \dd Load settings from saved session.
  21. \dt \cw{-ssh}
  22. \dd Force use of SSH protocol (default).
  23. \dt \cw{-telnet}
  24. \dd Force use of Telnet protocol.
  25. \dt \cw{-rlogin}
  26. \dd Force use of rlogin protocol.
  27. \dt \cw{-raw}
  28. \dd Force raw mode.
  29. \dt \cw{-serial}
  30. \dd Force serial mode.
  31. \dt \cw{\-proxycmd} \e{command}
  32. \dd Instead of making a TCP connection, use \e{command} as a proxy;
  33. network traffic will be redirected to the standard input and output
  34. of \e{command}. \e{command} must be a single word, so is likely to
  35. need quoting by the shell.
  36. \lcont{
  37. The special strings \cw{%host} and \cw{%port} in \e{command} will be
  38. replaced by the hostname and port number you want to connect to; to get
  39. a literal \c{%} sign, enter \c{%%}.
  40. Backslash escapes are also supported, such as sequences like \c{\\n}
  41. being replaced by a literal newline; to get a literal backslash,
  42. enter \c{\\\\}. (Further escaping may be required by the shell.)
  43. (See the main PuTTY manual for full details of the supported \cw{%}-
  44. and backslash-delimited tokens, although most of them are probably not
  45. very useful in this context.)
  46. }
  47. \dt \cw{-P} \e{port}
  48. \dd Connect to port \e{port}.
  49. \dt \cw{-l} \e{user}
  50. \dd Set remote username to \e{user}.
  51. \dt \cw{-m} \e{path}
  52. \dd Read remote command(s) from local file \e{path}.
  53. \dt \cw{-batch}
  54. \dd Disable interactive prompts.
  55. \dt \cw{-sanitise-stderr}
  56. \dt \cw{-sanitise-stdout}
  57. \dt \cw{-no-sanitise-stderr}
  58. \dt \cw{-no-sanitise-stdout}
  59. \dd By default, Plink can choose to filter control characters if that
  60. seems appropriate, to prevent remote processes sending confusing escape
  61. sequences. These options override Plink's default behaviour to enable
  62. or disabling such filtering on the standard error and standard output
  63. channels.
  64. \dt \cw{-pw} \e{password}
  65. \dd Set remote password to \e{password}. \e{CAUTION:} this will likely
  66. make the password visible to other users of the local machine (via
  67. commands such as \q{\c{w}}).
  68. \dt \cw{\-L} \cw{[}\e{srcaddr}\cw{:]}\e{srcport}\cw{:}\e{desthost}\cw{:}\e{destport}
  69. \dd Set up a local port forwarding: listen on \e{srcport} (or
  70. \e{srcaddr}:\e{srcport} if specified), and forward any connections
  71. over the SSH connection to the destination address
  72. \e{desthost}:\e{destport}. Only works in SSH.
  73. \dt \cw{\-R} \cw{[}\e{srcaddr}\cw{:]}\e{srcport}\cw{:}\e{desthost}\cw{:}\e{destport}
  74. \dd Set up a remote port forwarding: ask the SSH server to listen on
  75. \e{srcport} (or \e{srcaddr}:\e{srcport} if specified), and to
  76. forward any connections back over the SSH connection where the
  77. client will pass them on to the destination address
  78. \e{desthost}:\e{destport}. Only works in SSH.
  79. \dt \cw{\-D} [\e{srcaddr}:]\e{srcport}
  80. \dd Set up dynamic port forwarding. The client listens on
  81. \e{srcport} (or \e{srcaddr}:\e{srcport} if specified), and
  82. implements a SOCKS server. So you can point SOCKS-aware applications
  83. at this port and they will automatically use the SSH connection to
  84. tunnel all their connections. Only works in SSH.
  85. \dt \cw{-X}
  86. \dd Enable X11 forwarding.
  87. \dt \cw{-x}
  88. \dd Disable X11 forwarding (default).
  89. \dt \cw{-A}
  90. \dd Enable agent forwarding.
  91. \dt \cw{-a}
  92. \dd Disable agent forwarding (default).
  93. \dt \cw{-t}
  94. \dd Enable pty allocation (default if a command is NOT specified).
  95. \dt \cw{-T}
  96. \dd Disable pty allocation (default if a command is specified).
  97. \dt \cw{-1}
  98. \dd Force use of SSH protocol version 1.
  99. \dt \cw{-2}
  100. \dd Force use of SSH protocol version 2.
  101. \dt \cw{-4}, \cw{-6}
  102. \dd Force use of IPv4 or IPv6 for network connections.
  103. \dt \cw{-C}
  104. \dd Enable SSH compression.
  105. \dt \cw{-i} \e{keyfile}
  106. \dd Private key file for user authentication. For SSH-2 keys, this key
  107. file must be in PuTTY's PPK format, not OpenSSH's format or anyone
  108. else's.
  109. \lcont{ If you are using an authentication agent, you can also specify
  110. a \e{public} key here (in RFC 4716 or OpenSSH format), to identify
  111. which of the agent's keys to use. }
  112. \dt \cw{\-noagent}
  113. \dd Don't try to use an authentication agent for local authentication.
  114. (This doesn't affect agent forwarding.)
  115. \dt \cw{\-agent}
  116. \dd Allow use of an authentication agent. (This option is only necessary
  117. to override a setting in a saved session.)
  118. \dt \cw{\-noshare}
  119. \dd Don't test and try to share an existing connection, always make
  120. a new connection.
  121. \dt \cw{\-share}
  122. \dd Test and try to share an existing connection.
  123. \dt \cw{\-hostkey} \e{key}
  124. \dd Specify an acceptable host public key. This option may be specified
  125. multiple times; each key can be either a fingerprint (\cw{99:aa:bb:...}) or
  126. a base64-encoded blob in OpenSSH's one-line format.
  127. \lcont{ Specifying this option overrides automated host key
  128. management; \e{only} the key(s) specified on the command-line will be
  129. accepted (unless a saved session also overrides host keys, in which
  130. case those will be added to), and the host key cache will not be
  131. written. }
  132. \dt \cw{-s}
  133. \dd Remote command is SSH subsystem (SSH-2 only).
  134. \dt \cw{-N}
  135. \dd Don't start a remote command or shell at all (SSH-2 only).
  136. \dt \cw{\-nc} \e{host}:\e{port}
  137. \dd Make a remote network connection from the server instead of
  138. starting a shell or command.
  139. \dt \cw{\-sercfg} \e{configuration-string}
  140. \dd Specify the configuration parameters for the serial port, in
  141. \cw{-serial} mode. \e{configuration-string} should be a
  142. comma-separated list of configuration parameters as follows:
  143. \lcont{
  144. \b Any single digit from 5 to 9 sets the number of data bits.
  145. \b \cq{1}, \cq{1.5} or \cq{2} sets the number of stop bits.
  146. \b Any other numeric string is interpreted as a baud rate.
  147. \b A single lower-case letter specifies the parity: \cq{n} for none,
  148. \cq{o} for odd, \cq{e} for even, \cq{m} for mark and \cq{s} for space.
  149. \b A single upper-case letter specifies the flow control: \cq{N} for
  150. none, \cq{X} for XON/XOFF, \cq{R} for RTS/CTS and \cq{D} for
  151. DSR/DTR.
  152. }
  153. \dt \cw{\-sshlog} \e{logfile}
  154. \dt \cw{\-sshrawlog} \e{logfile}
  155. \dd For SSH connections, these options make \cw{plink} log protocol
  156. details to a file. (Some of these may be sensitive, although by default
  157. an effort is made to suppress obvious passwords.)
  158. \lcont{
  159. \cw{\-sshlog} logs decoded SSH packets and other events (those that
  160. \cw{\-v} would print). \cw{\-sshrawlog} additionally logs the raw
  161. encrypted packet data.
  162. }
  163. \dt \cw{\-shareexists}
  164. \dd Instead of making a new connection, test for the presence of an
  165. existing connection that can be shared. The desired session can be
  166. specified in any of the usual ways.
  167. \lcont{
  168. Returns immediately with a zero exit status if a suitable \q{upstream}
  169. exists, nonzero otherwise.
  170. }
  171. \S{plink-manpage-more-information} MORE INFORMATION
  172. For more information on plink, it's probably best to go and look at
  173. the manual on the PuTTY web page:
  174. \W{https://www.chiark.greenend.org.uk/~sgtatham/putty/}\cw{https://www.chiark.greenend.org.uk/~sgtatham/putty/}
  175. \S{plink-manpage-bugs} BUGS
  176. This man page isn't terribly complete. See the above web link for
  177. better documentation.