Plink logging?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
A quick question: To log your PuTTY session, you use the "Logging"
panel in the configuration box.  Is there a command-line option for
Plink that tells it to perform the same logging?  Thanks!

Re: Plink logging?

Quoted text here. Click to load it

No, there isn't currently. You'd have to save a session in PuTTY and
tell Plink to use that, as described in the PuTTY FAQ:

  A.6.5 How do I use all PuTTY's features (public keys, proxying,
    cipher selection, etc.) in PSCP, PSFTP and Plink?
  Most major features (e.g., public keys, port forwarding) are
  available through command line options. See the documentation.
  Not all features are accessible from the command line yet, although
  we'd like to fix this. In the meantime, you can use most of PuTTY's
  features if you create a PuTTY saved session, and then use the name
  of the saved session on the command line in place of a hostname.
  This works for PSCP, PSFTP and Plink (but don't expect port
  forwarding in the file transfer applications!).


Re: Plink logging?

Quoted text here. Click to load it

While it isn't full-blown PuTTY-style logging, I was able to capture
the output of my plink session using the following technique:

    cmd.exe /C plink.exe [options] > plink.log

which captures everything that would appear on the console and saves
it in "plink.log" instead.

Site Timeline