This option overrides PuTTY's normal SSH host key caching policy by telling it the name of the host you expect your connection to end up at (in cases where this differs from the location PuTTY thinks it's connecting to). It can be a plain host name, or a host name followed by a colon and a port number. See
section 4.13.5
for more detail on this.
3.8.3.20 -hostkey: manually specify an expected host key
This option overrides PuTTY's normal SSH host key caching policy by telling it exactly what host key to expect, which can be useful if the normal automatic host key store in the Registry is unavailable. The argument to this option should be either a host key fingerprint, or an SSH-2 public key blob. See
section 4.19.3
for more information.
You can specify this option more than once if you want to configure more than one key to be accepted.
3.8.3.21 -pgpfp: display PGP key fingerprints
This option causes the PuTTY tools not to run as normal, but instead to display the fingerprints of the PuTTY PGP Master Keys, in order to aid with verifying new versions. See
appendix E
for more information.
3.8.3.22 -sercfg: specify serial port configuration
This option specifies the configuration parameters for the serial port (baud rate, stop bits etc). Its argument is interpreted as a comma-separated list of configuration options, which can be as follows:
•Any single digit from 5 to 9 sets the number of data bits.
•‘1’, ‘1.5’ or ‘2’ sets the number of stop bits.
•Any other numeric string is interpreted as a baud rate.
•A single lower-case letter specifies the parity: ‘n’ for none, ‘o’ for odd, ‘e’ for even, ‘m’ for mark and ‘s’ for space.
•A single upper-case letter specifies the flow control: ‘N’ for none, ‘X’ for XON/XOFF, ‘R’ for RTS/CTS and ‘D’ for DSR/DTR.
For example, ‘-sercfg 19200,8,n,1,N’ denotes a baud rate of 19200, 8 data bits, no parity, 1 stop bit and no flow control.
3.8.3.23 -sessionlog, -sshlog, -sshrawlog: specify session logging
These options cause the PuTTY network tools to write out a log file. Each of them expects a file name as an argument, e.g. ‘-sshlog putty.log’ causes an SSH packet log to be written to a file called ‘putty.log’. The three different options select different logging modes, all available from the GUI too:
•-sessionlog selects ‘All session output’ logging mode.
•-sshlog selects ‘SSH packets’ logging mode.
•-sshrawlog selects ‘SSH packets and raw data’ logging mode.
For more information on logging configuration, see
section 4.2
.
Chapter 4: Configuring PuTTY
This chapter describes all the configuration options in PuTTY.
PuTTY is configured using the control panel that comes up before you start a session. Some options can also be changed in the middle of a session, by selecting ‘Change Settings’ from the window menu.
•
4.1 The Session panel
o
4.1.1 The host name section
o
4.1.2 Loading and storing saved sessions
o
4.1.3 ‘Close Window on Exit’
•
4.2 The Logging panel
o
4.2.1 ‘Log file name’
o
4.2.2 ‘What to do if the log file already exists’
o
4.2.3 ‘Flush log file frequently’
o
4.2.4 Options specific to SSH packet logging