man-plink.but 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  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{-ssh-connection}
  32. \dd Force use of the \q{bare \cw{ssh-connection}} protocol. This is
  33. only likely to be useful when connecting to a \cw{psusan}(\e{1})
  34. server, most likely with an absolute path to a Unix-domain socket in
  35. place of \e{host}.
  36. \dt \cw{\-proxycmd} \e{command}
  37. \dd Instead of making a TCP connection, use \e{command} as a proxy;
  38. network traffic will be redirected to the standard input and output
  39. of \e{command}. \e{command} must be a single word, so is likely to
  40. need quoting by the shell.
  41. \lcont{
  42. The special strings \cw{%host} and \cw{%port} in \e{command} will be
  43. replaced by the hostname and port number you want to connect to; to get
  44. a literal \c{%} sign, enter \c{%%}.
  45. Backslash escapes are also supported, such as sequences like \c{\\n}
  46. being replaced by a literal newline; to get a literal backslash,
  47. enter \c{\\\\}. (Further escaping may be required by the shell.)
  48. (See the main PuTTY manual for full details of the supported \cw{%}-
  49. and backslash-delimited tokens, although most of them are probably not
  50. very useful in this context.)
  51. }
  52. \dt \cw{-P} \e{port}
  53. \dd Connect to port \e{port}.
  54. \dt \cw{-l} \e{user}
  55. \dd Set remote username to \e{user}.
  56. \dt \cw{-m} \e{path}
  57. \dd Read remote command(s) from local file \e{path}.
  58. \dt \cw{-batch}
  59. \dd Disable interactive prompts.
  60. \dt \cw{-sanitise-stderr}
  61. \dt \cw{-sanitise-stdout}
  62. \dt \cw{-no-sanitise-stderr}
  63. \dt \cw{-no-sanitise-stdout}
  64. \dd By default, Plink can choose to filter control characters if that
  65. seems appropriate, to prevent remote processes sending confusing escape
  66. sequences. These options override Plink's default behaviour to enable
  67. or disabling such filtering on the standard error and standard output
  68. channels.
  69. \dt \cw{-pwfile} \e{filename}
  70. \dd Open the specified file, and use the first line of text read from
  71. it as the remote password.
  72. \dt \cw{-pw} \e{password}
  73. \dd Set remote password to \e{password}. \e{CAUTION:} this will likely
  74. make the password visible to other users of the local machine (via
  75. commands such as \q{\c{ps}} or \q{\c{w}}). Use \cw{-pwfile} instead.
  76. \dt \cw{\-L} \cw{[}\e{srcaddr}\cw{:]}\e{srcport}\cw{:}\e{desthost}\cw{:}\e{destport}
  77. \dd Set up a local port forwarding: listen on \e{srcport} (or
  78. \e{srcaddr}:\e{srcport} if specified), and forward any connections
  79. over the SSH connection to the destination address
  80. \e{desthost}:\e{destport}. Only works in SSH.
  81. \dt \cw{\-R} \cw{[}\e{srcaddr}\cw{:]}\e{srcport}\cw{:}\e{desthost}\cw{:}\e{destport}
  82. \dd Set up a remote port forwarding: ask the SSH server to listen on
  83. \e{srcport} (or \e{srcaddr}:\e{srcport} if specified), and to
  84. forward any connections back over the SSH connection where the
  85. client will pass them on to the destination address
  86. \e{desthost}:\e{destport}. Only works in SSH.
  87. \dt \cw{\-D} [\e{srcaddr}:]\e{srcport}
  88. \dd Set up dynamic port forwarding. The client listens on
  89. \e{srcport} (or \e{srcaddr}:\e{srcport} if specified), and
  90. implements a SOCKS server. So you can point SOCKS-aware applications
  91. at this port and they will automatically use the SSH connection to
  92. tunnel all their connections. Only works in SSH.
  93. \dt \cw{-X}
  94. \dd Enable X11 forwarding.
  95. \dt \cw{-x}
  96. \dd Disable X11 forwarding (default).
  97. \dt \cw{-A}
  98. \dd Enable agent forwarding.
  99. \dt \cw{-a}
  100. \dd Disable agent forwarding (default).
  101. \dt \cw{-t}
  102. \dd Enable pty allocation (default if a command is NOT specified).
  103. \dt \cw{-T}
  104. \dd Disable pty allocation (default if a command is specified).
  105. \dt \cw{-1}
  106. \dd Force use of SSH protocol version 1.
  107. \dt \cw{-2}
  108. \dd Force use of SSH protocol version 2.
  109. \dt \cw{-4}, \cw{-6}
  110. \dd Force use of IPv4 or IPv6 for network connections.
  111. \dt \cw{-C}
  112. \dd Enable SSH compression.
  113. \dt \cw{-i} \e{keyfile}
  114. \dd Private key file for user authentication. For SSH-2 keys, this key
  115. file must be in PuTTY's PPK format, not OpenSSH's format or anyone
  116. else's.
  117. \lcont{ If you are using an authentication agent, you can also specify
  118. a \e{public} key here (in RFC 4716 or OpenSSH format), to identify
  119. which of the agent's keys to use. }
  120. \dt \cw{\-noagent}
  121. \dd Don't try to use an authentication agent for local authentication.
  122. (This doesn't affect agent forwarding.)
  123. \dt \cw{\-agent}
  124. \dd Allow use of an authentication agent. (This option is only necessary
  125. to override a setting in a saved session.)
  126. \dt \cw{\-no\-trivial\-auth}
  127. \dd Disconnect from any SSH server which accepts authentication without
  128. ever having asked for any kind of password or signature or token. (You
  129. might want to enable this for a server you always expect to challenge
  130. you, for instance to ensure you don't accidentally type your key file's
  131. passphrase into a compromised server spoofing Plink's passphrase
  132. prompt.)
  133. \dt \cw{\-noshare}
  134. \dd Don't test and try to share an existing connection, always make
  135. a new connection.
  136. \dt \cw{\-share}
  137. \dd Test and try to share an existing connection.
  138. \dt \cw{\-hostkey} \e{key}
  139. \dd Specify an acceptable host public key. This option may be specified
  140. multiple times; each key can be either a fingerprint (\cw{SHA256:AbCdE...},
  141. \cw{99:aa:bb:...}, etc) or a base64-encoded blob in OpenSSH's one-line
  142. format.
  143. \lcont{ Specifying this option overrides automated host key
  144. management; \e{only} the key(s) specified on the command-line will be
  145. accepted (unless a saved session also overrides host keys, in which
  146. case those will be added to), and the host key cache will not be
  147. written. }
  148. \dt \cw{-s}
  149. \dd Remote command is SSH subsystem (SSH-2 only).
  150. \dt \cw{-N}
  151. \dd Don't start a remote command or shell at all (SSH-2 only).
  152. \dt \cw{\-nc} \e{host}:\e{port}
  153. \dd Make a remote network connection from the server instead of
  154. starting a shell or command.
  155. \dt \cw{\-sercfg} \e{configuration-string}
  156. \dd Specify the configuration parameters for the serial port, in
  157. \cw{-serial} mode. \e{configuration-string} should be a
  158. comma-separated list of configuration parameters as follows:
  159. \lcont{
  160. \b Any single digit from 5 to 9 sets the number of data bits.
  161. \b \cq{1}, \cq{1.5} or \cq{2} sets the number of stop bits.
  162. \b Any other numeric string is interpreted as a baud rate.
  163. \b A single lower-case letter specifies the parity: \cq{n} for none,
  164. \cq{o} for odd, \cq{e} for even, \cq{m} for mark and \cq{s} for space.
  165. \b A single upper-case letter specifies the flow control: \cq{N} for
  166. none, \cq{X} for XON/XOFF, \cq{R} for RTS/CTS and \cq{D} for
  167. DSR/DTR.
  168. }
  169. \dt \cw{\-sshlog} \e{logfile}
  170. \dt \cw{\-sshrawlog} \e{logfile}
  171. \dd For SSH connections, these options make \cw{plink} log protocol
  172. details to a file. (Some of these may be sensitive, although by default
  173. an effort is made to suppress obvious passwords.)
  174. \lcont{
  175. \cw{\-sshlog} logs decoded SSH packets and other events (those that
  176. \cw{\-v} would print). \cw{\-sshrawlog} additionally logs the raw
  177. encrypted packet data.
  178. }
  179. \dt \cw{\-logoverwrite}
  180. \dd If Plink is configured to write to a log file that already exists,
  181. discard the existing file.
  182. \dt \cw{\-logappend}
  183. \dd If Plink is configured to write to a log file that already exists,
  184. append new log data to the existing file.
  185. \dt \cw{\-shareexists}
  186. \dd Instead of making a new connection, test for the presence of an
  187. existing connection that can be shared. The desired session can be
  188. specified in any of the usual ways.
  189. \lcont{
  190. Returns immediately with a zero exit status if a suitable \q{upstream}
  191. exists, nonzero otherwise.
  192. }
  193. \S{plink-manpage-more-information} MORE INFORMATION
  194. For more information on plink, it's probably best to go and look at
  195. the manual on the PuTTY web page:
  196. \W{https://www.chiark.greenend.org.uk/~sgtatham/putty/}\cw{https://www.chiark.greenend.org.uk/~sgtatham/putty/}
  197. \S{plink-manpage-bugs} BUGS
  198. This man page isn't terribly complete. See the above web link for
  199. better documentation.