•
3.8.3.12 -t and -T: control pseudo-terminal allocation
•
3.8.3.13 -N: suppress starting a shell or command
•
3.8.3.14 -nc: make a remote network connection in place of a remote shell or command
•
3.8.3.15 -C: enable compression
•
3.8.3.16 -1 and -2: specify an SSH protocol version
•
3.8.3.17 -4 and -6: specify an Internet protocol version
•
3.8.3.18 -i: specify an SSH private key
•
3.8.3.19 -loghost: specify a logical host name
•
3.8.3.20 -hostkey: manually specify an expected host key
•
3.8.3.21 -pgpfp: display PGP key fingerprints
•
3.8.3.22 -sercfg: specify serial port configuration
•
3.8.3.23 -sessionlog, -sshlog, -sshrawlog: specify session logging
3.8.3.1 -load: load a saved session
The -load option causes PuTTY to load configuration details out of a saved session. If these details include a host name, then this option is all you need to make PuTTY start a session.
You need double quotes around the session name if it contains spaces.
If you want to create a Windows shortcut to start a PuTTY saved session, this is the option you should use: your shortcut should call something like
d:\path\to\putty.exe -load "my session"
(Note that PuTTY itself supports an alternative form of this option, for backwards compatibility. If you execute putty @sessionname it will have the same effect as putty -load "sessionname". With the @ form, no double quotes are required, and the @ sign must be the very first thing on the command line. This form of the option is deprecated.)
3.8.3.2 Selecting a protocol: -ssh, -telnet, -rlogin, -raw -serial
To choose which protocol you want to connect with, you can use one of these options:
•-ssh selects the SSH protocol.
•-telnet selects the Telnet protocol.
•-rlogin selects the Rlogin protocol.
•-raw selects the raw protocol.
•-serial selects a serial connection.
These options are not available in the file transfer tools PSCP and PSFTP (which only work with the SSH protocol).
These options are equivalent to the protocol selection buttons in the Session panel of the PuTTY configuration box (see
section
4.1.1
).
3.8.3.3 -v: increase verbosity
Most of the PuTTY tools can be made to tell you more about what they are doing by supplying the -v option. If you are having trouble when making a connection, or you're simply curious, you can turn this switch on and hope to find out more about what is happening.
3.8.3.4 -l: specify a login name
You can specify the user name to log in as on the remote server using the -l option. For example, plink login.example.com -l fred.
These options are equivalent to the username selection box in the Connection panel of the PuTTY configuration box (see
section
4.14.1
).