putty1
Gui ssh, telnet, rlogin, and supdup client for x
Usage
putty [options]
[host]
Overview
putty is a graphical SSH, Telnet, Rlogin, and SUPDUP client for X. It is a direct port of the Windows SSH client of the same name.
Options
The command-line options supported by putty are:
-
--display display-name -
Specify the X display on which to open
putty. (Note this option has a double minus sign, even though none of the others do. This is because this option is supplied automatically by GTK. Sorry.)
-
-fn font-name -
Specify the font to use for normal text displayed in the terminal. For example, -fn fixed, -fn "Monospace 12".
-
-fb font-name -
Specify the font to use for bold text displayed in the terminal. If the
BoldAsColourresource is set to 1 (the default), bold text will be displayed in different colours instead of a different font, so this option will be ignored. IfBoldAsColouris set to 0 or 2 and you do not specify a bold font,puttywill overprint the normal font to make it look bolder.
-
-fw font-name -
Specify the font to use for double-width characters (typically Chinese, Japanese and Korean text) displayed in the terminal.
-
-fwb font-name -
Specify the font to use for bold double-width characters (typically Chinese, Japanese and Korean text). Like
-fb, this will be ignored unless theBoldAsColourresource is set to 0 or 2.
-
-geometry geometry -
Specify the size of the terminal, in rows and columns of text. See X(7) for more information on the syntax of geometry specifications.
-
-sl lines -
Specify the number of lines of scrollback to save off the top of the terminal.
-
-fg colour -
Specify the foreground colour to use for normal text.
-
-bg colour -
Specify the background colour to use for normal text.
-
-bfg colour -
Specify the foreground colour to use for bold text, if the
BoldAsColourresource is set to 1 (the default) or 2.
-
-bbg colour -
Specify the foreground colour to use for bold reverse-video text, if the
BoldAsColourresource is set to 1 (the default) or 2. (This colour is best thought of as the bold version of the background colour; so it only appears when text is displayed in the background colour.)
-
-cfg colour -
Specify the foreground colour to use for text covered by the cursor.
-
-cbg colour -
Specify the background colour to use for text covered by the cursor. In other words, this is the main colour of the cursor.
-
-title title -
Specify the initial title of the terminal window. (This can be changed under control of the server.)
-sb-or+sb-
Tells
puttynot to display a scroll bar.
-
-sb -
Tells
puttyto display a scroll bar: this is the opposite of-sb-. This is the default option: you will probably only need to specify it explicitly if you have changed the default using theScrollBarresource.
-
-log logfile, -sessionlog logfile -
This option makes
puttylog all the terminal output to a file as well as displaying it in the terminal.
-
-sshlog logfile
-
-sshrawlog logfile -
For SSH connections, these options make
puttylog protocol details to a file. (Some of these may be sensitive, although by default an effort is made to suppress obvious passwords.)-sshloglogs decoded SSH packets and other events (those that-vwould print).-sshrawlogadditionally logs the raw encrypted packet data.
-
-logoverwrite -
If
puttyis configured to write to a log file that already exists, discard the existing file.
-
-logappend -
If
puttyis configured to write to a log file that already exists, append new log data to the existing file.
-
-cs charset -
This option specifies the character set in which
puttyshould assume the session is operating. This character set will be used to interpret all the data received from the session, and all input you type or paste intoputtywill be converted into this character set before being sent to the session.Any character set name which is valid in a MIME header (and supported by
putty) should be valid here (examples are `ISO-8859-1', `windows-1252' or `UTF-8'). Also, any character encoding which is valid in an X logical font description should be valid (`ibm-cp437', for example).putty's default behaviour is to use the same character encoding as its primary font. If you supply a Unicode (iso10646-1) font, it will default to the UTF-8 character set.Character set names are case-insensitive.
-
-nethack -
Tells
puttyto enable NetHack keypad mode, in which the numeric keypad generates the NetHackhjklyubndirection keys. This enables you to play NetHack with the numeric keypad without having to use the NetHacknumber_padoption (which requires you to press `n' before any repeat count). So you can move with the numeric keypad, and enter repeat counts with the normal number keys.
-
-help, --help -
Display a message summarizing the available options.
-
-pgpfp -
Display the fingerprints of the PuTTY PGP Master Keys, to aid in verifying new files released by the PuTTY team.
-
-load session -
Load a saved session by name. This allows you to run a saved session straight from the command line without having to go through the configuration box first.
-
-ssh, -telnet, -rlogin, -supdup, -raw, -ssh-connection, -serial -
Select the protocol
puttywill use to make the connection.
-
-proxycmd command -
Instead of making a TCP connection, use command as a proxy; network traffic will be redirected to the standard input and output of command. command must be a single word, so is likely to need quoting by the shell.
The special strings
%hostand%portin command will be replaced by the hostname and port number you want to connect to; to get a literal % sign, enter %%.Backslash escapes are also supported, such as sequences like
\nbeing replaced by a literal newline; to get a literal backslash, enter \\. (Further escaping may be required by the shell.)(See the main PuTTY manual for full details of the supported %- and backslash-delimited tokens, although most of them are probably not very useful in this context.)
-
-preconnectcommand command -
Specify an external command to run just before making the main network connection. The syntax of command is similar to that for
-proxycmd.
-
-l username -
Specify the username to use when logging in to the server.
-
-L [srcaddr:]srcport:desthost:destport -
Set up a local port forwarding: listen on srcport (or srcaddr:srcport if specified), and forward any connections over the SSH connection to the destination address desthost:destport. Only works in SSH.
-
-R [srcaddr:]srcport:desthost:destport -
Set up a remote port forwarding: ask the SSH server to listen on srcport (or srcaddr:srcport if specified), and to forward any connections back over the SSH connection where the client will pass them on to the destination address desthost:destport. Only works in SSH.
-
-D [srcaddr:]srcport -
Set up dynamic port forwarding. The client listens on srcport (or srcaddr:srcport if specified), and implements a SOCKS server. So you can point SOCKS-aware applications at this port and they will automatically use the SSH connection to tunnel all their connections. Only works in SSH.
-
-P port -
Specify the port to connect to the server on.
-
-A, -a -
Enable (
-A) or disable (-a) SSH agent forwarding. Currently this only works with OpenSSH and SSH-1.
-
-X, -x -
Enable (
-X) or disable (-x) X11 forwarding.
-
-T, -t -
Enable (
-t) or disable (-T) the allocation of a pseudo-terminal at the server end.
-
-C -
Enable zlib-style compression on the connection.
-
-1, -2 -
Select SSH protocol version 1 or 2.
-
-4, -6 -
Force use of IPv4 or IPv6 for network connections.
-
-i keyfile -
Private key file for user authentication. For SSH-2 keys, this key file must be in PuTTY's PPK format, not OpenSSH's format or anyone else's.
If you are using an authentication agent, you can also specify a public key here (in RFC 4716 or OpenSSH format), to identify which of the agent's keys to use.
-
-noagent -
Don't try to use an authentication agent for local authentication. (This doesn't affect agent forwarding.)
-
-agent -
Allow use of an authentication agent. (This option is only necessary to override a setting in a saved session.)
-
-no-trivial-auth -
Disconnect from any SSH server which accepts authentication without ever having asked for any kind of password or signature or token. (You might want to enable this for a server you always expect to challenge you, for instance to ensure you don't accidentally type your key file's passphrase into a compromised server spoofing PuTTY's passphrase prompt.)
-
-hostkey key -
Specify an acceptable host public key. This option may be specified multiple times; each key can be either a fingerprint (
SHA256:AbCdE...,99:aa:bb:..., etc) or a base64-encoded blob in OpenSSH's one-line format.Specifying this option overrides automated host key management; only the key(s) specified on the command-line will be accepted (unless a saved session also overrides host keys, in which case those will be added to), and the host key cache will not be written.
-
-sercfg configuration-string -
Specify the configuration parameters for the serial port, in
-serialmode. configuration-string should be a comma-separated list of configuration parameters 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.
Saved sessions
Saved sessions are stored in a .putty/sessions subdirectory in your home directory.
More information
For more information on PuTTY, it's probably best to go and look at the manual on the web page:
https://www.chiark.greenend.org.uk/~sgtatham/putty/
Releases
12 releases since Debian 3.1 (Sarge); the text changed 7 times.
--display since Debian 6.0 (Squeeze);
--help since Debian 6.0 (Squeeze);
-1 since Debian 6.0 (Squeeze);
-2 since Debian 6.0 (Squeeze);
-4 since Debian 10 (Buster);
-6 since Debian 10 (Buster);
-A since Debian 6.0 (Squeeze);
-C since Debian 6.0 (Squeeze);
-D since Debian 6.0 (Squeeze);
-L since Debian 6.0 (Squeeze);
-P since Debian 6.0 (Squeeze);
-R since Debian 6.0 (Squeeze);
-T since Debian 6.0 (Squeeze);
-X since Debian 6.0 (Squeeze);
-a since Debian 6.0 (Squeeze);
-agent since Debian 10 (Buster);
-bbg since Debian 6.0 (Squeeze);
-bfg since Debian 6.0 (Squeeze);
-bg since Debian 6.0 (Squeeze);
-cbg since Debian 6.0 (Squeeze);
-cfg since Debian 6.0 (Squeeze);
-cs since Debian 6.0 (Squeeze);
-fb since Debian 6.0 (Squeeze);
-fg since Debian 6.0 (Squeeze);
-fn since Debian 6.0 (Squeeze);
-fw since Debian 6.0 (Squeeze);
-fwb since Debian 6.0 (Squeeze);
-geometry since Debian 6.0 (Squeeze);
-help since Debian 6.0 (Squeeze);
-hostkey since Debian 9 (Stretch);
-i since Debian 6.0 (Squeeze);
-l since Debian 6.0 (Squeeze);
-load since Debian 6.0 (Squeeze);
-log since Debian 6.0 (Squeeze);
-logappend since Debian 12 (Bookworm);
-logoverwrite since Debian 12 (Bookworm);
-nethack since Debian 6.0 (Squeeze);
-no-trivial-auth since Debian 12 (Bookworm);
-noagent since Debian 10 (Buster);
-pgpfp since Debian 6.0 (Squeeze);
-preconnectcommand since Arch Linux 2026-11-01;
-proxycmd since Debian 10 (Buster);
-raw since Debian 6.0 (Squeeze);
-rlogin since Debian 6.0 (Squeeze);
-sb since Debian 6.0 (Squeeze);
-sercfg since Debian 6.0 (Squeeze);
-serial since Debian 6.0 (Squeeze);
-sessionlog since Debian 9 (Stretch);
-sl since Debian 6.0 (Squeeze);
-ssh since Debian 6.0 (Squeeze);
-ssh-connection since Debian 12 (Bookworm);
-sshlog since Debian 9 (Stretch);
-sshrawlog since Debian 9 (Stretch);
-supdup since Debian 12 (Bookworm);
-t since Debian 6.0 (Squeeze);
-telnet since Debian 6.0 (Squeeze);
-title since Debian 6.0 (Squeeze);
-x since Debian 6.0 (Squeeze).