man-pscp.but 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. \cfg{man-identity}{pscp}{1}{2004-03-24}{PuTTY tool suite}{PuTTY tool suite}
  2. \H{pscp-manpage} Man page for PSCP
  3. \S{pscp-manpage-name} NAME
  4. \cw{pscp} \- command-line SCP (secure copy) / SFTP client
  5. \S{pscp-manpage-synopsis} SYNOPSIS
  6. \c pscp [options] [user@]host:source target
  7. \e bbbb iiiiiii iiiib iiiibiiiiii iiiiii
  8. \c pscp [options] source [source...] [user@]host:target
  9. \e bbbb iiiiiii iiiiii iiiiii iiiib iiiibiiiiii
  10. \c pscp [options] -ls [user@]host:filespec
  11. \e bbbb iiiiiii bbb iiiib iiiibiiiiiiii
  12. \S{pscp-manpage-description} DESCRIPTION
  13. \cw{pscp} is a command-line client for the SSH-based SCP (secure
  14. copy) and SFTP (secure file transfer protocol) protocols.
  15. \S{pscp-manpage-options} OPTIONS
  16. The command-line options supported by \e{pscp} are:
  17. \dt \cw{-V}
  18. \dd Show version information and exit.
  19. \dt \cw{-pgpfp}
  20. \dd Display the fingerprints of the PuTTY PGP Master Keys and exit,
  21. to aid in verifying new files released by the PuTTY team.
  22. \dt \cw{-ls}
  23. \dd Remote directory listing.
  24. \dt \cw{-p}
  25. \dd Preserve file attributes.
  26. \dt \cw{-q}
  27. \dd Quiet, don't show statistics.
  28. \dt \cw{-r}
  29. \dd Copy directories recursively.
  30. \dt \cw{-unsafe}
  31. \dd Allow server-side wildcards (DANGEROUS).
  32. \dt \cw{-v}
  33. \dd Show verbose messages.
  34. \dt \cw{-load} \e{session}
  35. \dd Load settings from saved session.
  36. \dt \cw{-P} \e{port}
  37. \dd Connect to port \e{port}.
  38. \dt \cw{\-proxycmd} \e{command}
  39. \dd Instead of making a TCP connection, use \e{command} as a proxy;
  40. network traffic will be redirected to the standard input and output
  41. of \e{command}. \e{command} must be a single word, so is likely to
  42. need quoting by the shell.
  43. \lcont{
  44. The special strings \cw{%host} and \cw{%port} in \e{command} will be
  45. replaced by the hostname and port number you want to connect to; to get
  46. a literal \c{%} sign, enter \c{%%}.
  47. Backslash escapes are also supported, such as sequences like \c{\\n}
  48. being replaced by a literal newline; to get a literal backslash,
  49. enter \c{\\\\}. (Further escaping may be required by the shell.)
  50. (See the main PuTTY manual for full details of the supported \cw{%}-
  51. and backslash-delimited tokens, although most of them are probably not
  52. very useful in this context.)
  53. }
  54. \dt \cw{-l} \e{user}
  55. \dd Set remote username to \e{user}.
  56. \dt \cw{-batch}
  57. \dd Disable interactive prompts.
  58. \dt \cw{-no-sanitise-stderr}
  59. \dd By default, PSCP will filter control characters from the standard error
  60. channel from the server, to prevent remote processes sending confusing
  61. escape sequences. This option forces the standard error channel to not be
  62. filtered.
  63. \dt \cw{-pw} \e{password}
  64. \dd Set remote password to \e{password}. \e{CAUTION:} this will likely
  65. make the password visible to other users of the local machine (via
  66. commands such as \q{\c{w}}).
  67. \dt \cw{-1}
  68. \dd Force use of SSH protocol version 1.
  69. \dt \cw{-2}
  70. \dd Force use of SSH protocol version 2.
  71. \dt \cw{-4}, \cw{-6}
  72. \dd Force use of IPv4 or IPv6 for network connections.
  73. \dt \cw{-C}
  74. \dd Enable SSH compression.
  75. \dt \cw{-i} \e{keyfile}
  76. \dd Private key file for user authentication. For SSH-2 keys, this key
  77. file must be in PuTTY's PPK format, not OpenSSH's format or anyone
  78. else's.
  79. \lcont{ If you are using an authentication agent, you can also specify
  80. a \e{public} key here (in RFC 4716 or OpenSSH format), to identify
  81. which of the agent's keys to use. }
  82. \dt \cw{\-noagent}
  83. \dd Don't try to use an authentication agent.
  84. \dt \cw{\-agent}
  85. \dd Allow use of an authentication agent. (This option is only necessary
  86. to override a setting in a saved session.)
  87. \dt \cw{\-hostkey} \e{key}
  88. \dd Specify an acceptable host public key. This option may be specified
  89. multiple times; each key can be either a fingerprint (\cw{99:aa:bb:...}) or
  90. a base64-encoded blob in OpenSSH's one-line format.
  91. \lcont{ Specifying this option overrides automated host key
  92. management; \e{only} the key(s) specified on the command-line will be
  93. accepted (unless a saved session also overrides host keys, in which
  94. case those will be added to), and the host key cache will not be
  95. written. }
  96. \dt \cw{-scp}
  97. \dd Force use of SCP protocol.
  98. \dt \cw{-sftp}
  99. \dd Force use of SFTP protocol.
  100. \dt \cw{\-sshlog} \e{logfile}
  101. \dt \cw{\-sshrawlog} \e{logfile}
  102. \dd These options make \cw{pscp} log protocol details to a file.
  103. (Some of these may be sensitive, although by default an effort is made
  104. to suppress obvious passwords.)
  105. \lcont{
  106. \cw{\-sshlog} logs decoded SSH packets and other events (those that
  107. \cw{\-v} would print). \cw{\-sshrawlog} additionally logs the raw
  108. encrypted packet data.
  109. }
  110. \S{pscp-manpage-more-information} MORE INFORMATION
  111. For more information on \cw{pscp} it's probably best to go and look at
  112. the manual on the PuTTY web page:
  113. \W{https://www.chiark.greenend.org.uk/~sgtatham/putty/}\cw{https://www.chiark.greenend.org.uk/~sgtatham/putty/}
  114. \S{pscp-manpage-bugs} BUGS
  115. This man page isn't terribly complete. See the above web link for
  116. better documentation.