man-psftp.but 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. \cfg{man-identity}{psftp}{1}{2004-03-24}{PuTTY tool suite}{PuTTY tool suite}
  2. \H{psftp-manpage} Man page for PSFTP
  3. \S{psftp-manpage-name} NAME
  4. \cw{psftp} \- interactive SFTP (secure file transfer protocol) client
  5. \S{psftp-manpage-synopsis} SYNOPSIS
  6. \c psftp [options] [user@]host
  7. \e bbbbb iiiiiii iiiib iiii
  8. \S{psftp-manpage-description} DESCRIPTION
  9. \cw{psftp} is an interactive text-based client for the SSH-based SFTP
  10. (secure file transfer) protocol.
  11. \S{psftp-manpage-options} OPTIONS
  12. The command-line options supported by \cw{psftp} are:
  13. \dt \cw{-V}
  14. \dd Show version information and exit.
  15. \dt \cw{-pgpfp}
  16. \dd Display the fingerprints of the PuTTY PGP Master Keys and exit,
  17. to aid in verifying new files released by the PuTTY team.
  18. \dt \cw{-b} \e{batchfile}
  19. \dd Use specified batchfile.
  20. \dt \cw{-bc}
  21. \dd Output batchfile commands.
  22. \dt \cw{-be}
  23. \dd Don't stop batchfile processing on errors.
  24. \dt \cw{-v}
  25. \dd Show verbose messages.
  26. \dt \cw{-load} \e{session}
  27. \dd Load settings from saved session.
  28. \dt \cw{-P} \e{port}
  29. \dd Connect to port \e{port}.
  30. \dt \cw{\-proxycmd} \e{command}
  31. \dd Instead of making a TCP connection, use \e{command} as a proxy;
  32. network traffic will be redirected to the standard input and output
  33. of \e{command}. \e{command} must be a single word, so is likely to
  34. need quoting by the shell.
  35. \lcont{
  36. The special strings \cw{%host} and \cw{%port} in \e{command} will be
  37. replaced by the hostname and port number you want to connect to; to get
  38. a literal \c{%} sign, enter \c{%%}.
  39. Backslash escapes are also supported, such as sequences like \c{\\n}
  40. being replaced by a literal newline; to get a literal backslash,
  41. enter \c{\\\\}. (Further escaping may be required by the shell.)
  42. (See the main PuTTY manual for full details of the supported \cw{%}-
  43. and backslash-delimited tokens, although most of them are probably not
  44. very useful in this context.)
  45. }
  46. \dt \cw{-l} \e{user}
  47. \dd Set remote username to \e{user}.
  48. \dt \cw{-batch}
  49. \dd Disable interactive prompts.
  50. \dt \cw{-no-sanitise-stderr}
  51. \dd By default, PSFTP will filter control characters from the standard error
  52. channel from the server, to prevent remote processes sending confusing
  53. escape sequences. This option forces the standard error channel to not be
  54. filtered.
  55. \dt \cw{-pwfile} \e{filename}
  56. \dd Open the specified file, and use the first line of text read from
  57. it as the remote password.
  58. \dt \cw{-pw} \e{password}
  59. \dd Set remote password to \e{password}. \e{CAUTION:} this will likely
  60. make the password visible to other users of the local machine (via
  61. commands such as \q{\c{ps}} or \q{\c{w}}). Use \cw{-pwfile} instead.
  62. \dt \cw{-1}
  63. \dd Force use of SSH protocol version 1.
  64. \dt \cw{-2}
  65. \dd Force use of SSH protocol version 2.
  66. \dt \cw{-ssh-connection}
  67. \dd Force use of the \q{bare \cw{ssh-connection}} protocol. This is
  68. only likely to be useful when connecting to a \cw{psusan}(\e{1})
  69. server, most likely with an absolute path to a Unix-domain socket in
  70. place of \e{host}.
  71. \dt \cw{-ssh}
  72. \dd Force use of the SSH protocol. (This is usually not needed; it's
  73. only likely to be useful if you need to override some other
  74. configuration of the \q{bare \cw{ssh-connection}} protocol.)
  75. \dt \cw{-4}, \cw{-6}
  76. \dd Force use of IPv4 or IPv6 for network connections.
  77. \dt \cw{-C}
  78. \dd Enable SSH compression.
  79. \dt \cw{-i} \e{keyfile}
  80. \dd Private key file for user authentication. For SSH-2 keys, this key
  81. file must be in PuTTY's PPK format, not OpenSSH's format or anyone
  82. else's.
  83. \lcont{ If you are using an authentication agent, you can also specify
  84. a \e{public} key here (in RFC 4716 or OpenSSH format), to identify
  85. which of the agent's keys to use. }
  86. \dt \cw{\-noagent}
  87. \dd Don't try to use an authentication agent.
  88. \dt \cw{\-agent}
  89. \dd Allow use of an authentication agent. (This option is only necessary
  90. to override a setting in a saved session.)
  91. \dt \cw{\-no\-trivial\-auth}
  92. \dd Disconnect from any SSH server which accepts authentication without
  93. ever having asked for any kind of password or signature or token. (You
  94. might want to enable this for a server you always expect to challenge
  95. you, for instance to ensure you don't accidentally type your key file's
  96. passphrase into a compromised server spoofing PSFTP's passphrase
  97. prompt.)
  98. \dt \cw{\-hostkey} \e{key}
  99. \dd Specify an acceptable host public key. This option may be specified
  100. multiple times; each key can be either a fingerprint (\cw{SHA256:AbCdE...},
  101. \cw{99:aa:bb:...}, etc) or a base64-encoded blob in OpenSSH's one-line
  102. format.
  103. \lcont{ Specifying this option overrides automated host key
  104. management; \e{only} the key(s) specified on the command-line will be
  105. accepted (unless a saved session also overrides host keys, in which
  106. case those will be added to), and the host key cache will not be
  107. written. }
  108. \dt \cw{\-sshlog} \e{logfile}
  109. \dt \cw{\-sshrawlog} \e{logfile}
  110. \dd These options make \cw{psftp} log protocol details to a file.
  111. (Some of these may be sensitive, although by default an effort is made
  112. to suppress obvious passwords.)
  113. \lcont{
  114. \cw{\-sshlog} logs decoded SSH packets and other events (those that
  115. \cw{\-v} would print). \cw{\-sshrawlog} additionally logs the raw
  116. encrypted packet data.
  117. }
  118. \dt \cw{\-logoverwrite}
  119. \dd If PSFTP is configured to write to a log file that already exists,
  120. discard the existing file.
  121. \dt \cw{\-logappend}
  122. \dd If PSFTP is configured to write to a log file that already exists,
  123. append new log data to the existing file.
  124. \S{psftp-manpage-commands} COMMANDS
  125. For a list of commands available inside \cw{psftp}, type \cw{help}
  126. at the \cw{psftp>} prompt.
  127. \S{psftp-manpage-more-information} MORE INFORMATION
  128. For more information on \cw{psftp} it's probably best to go and look at
  129. the manual on the PuTTY web page:
  130. \cw{https://www.chiark.greenend.org.uk/~sgtatham/putty/}
  131. \S{psftp-manpage-bugs} BUGS
  132. This man page isn't terribly complete. See the above web link for
  133. better documentation.