UI changes for key imports. We now have a separate Load command and
[sgt/putty] / doc / config.but
CommitLineData
05a24552 1\versionid $Id: config.but,v 1.32 2002/05/11 13:03:47 owen Exp $
8f1529bc 2
e5b0d077 3\C{config} Configuring PuTTY
4
55ba634a 5This chapter describes all the configuration options in PuTTY.
6
7PuTTY is configured using the control panel that comes up before you
8start a session. Some options can also be changed in the middle of a
d60c975d 9session, by selecting \q{Change Settings} from the window menu.
55ba634a 10
11\H{config-session} The Session panel
12
13The Session configuration panel contains the basic options you need
14to specify in order to open a session at all, and also allows you to
15save your settings to be reloaded later.
16
17\S{config-hostname} The host name section
18
70133c0e 19\cfg{winhelp-topic}{session.hostname}
20
55ba634a 21The top box on the Session panel, labelled \q{Specify your
22connection by host name}, contains the details that need to be
23filled in before PuTTY can open a session at all.
24
d60c975d 25\b The \q{Host Name} box is where you type the name, or the IP
55ba634a 26address, of the server you want to connect to.
27
d60c975d 28\b The \q{Protocol} radio buttons let you choose what type of
350ee898 29connection you want to make: a raw connection, a Telnet connection, an
add788fc 30rlogin connection or an SSH connection. (See \k{which-one} for a
31summary of the differences between SSH, Telnet and rlogin.)
55ba634a 32
d60c975d 33\b The \q{Port} box lets you specify which port number on the server
2f8d6d43 34to connect to. If you select Telnet, Rlogin, or SSH, this box will
35be filled in automatically to the usual value, and you will only
36need to change it if you have an unusual server. If you select Raw
37mode (see \k{using-rawprot}), you will almost certainly need to fill
38in the \q{Port} box.
55ba634a 39
40\S{config-saving} Loading and storing saved sessions
41
70133c0e 42\cfg{winhelp-topic}{session.saved}
43
55ba634a 44The next part of the Session configuration panel allows you to save
45your preferred PuTTY options so they will appear automatically the
46next time you start PuTTY. It also allows you to create \e{saved
47sessions}, which contain a full set of configuration options plus a
48host name and protocol. A saved session contains all the information
49PuTTY needs to start exactly the session you want.
50
51\b To save your default settings: first set up the settings the way
52you want them saved. Then come back to the Session panel. Select the
53\q{Default Settings} entry in the saved sessions list, with a single
d60c975d 54click. Then press the \q{Save} button.
55ba634a 55
e0cff44d 56Note that PuTTY does not allow you to save a host name into the
57Default Settings entry. This ensures that when PuTTY is started up,
58the host name box is always empty, so a user can always just type in
59a host name and connect.
60
61If there is a specific host you want to store the details of how to
62connect to, you should create a saved session, which will be
63separate from the Default Settings.
64
55ba634a 65\b To save a session: first go through the rest of the configuration
66box setting up all the options you want. Then come back to the
d60c975d 67Session panel. Enter a name for the saved session in the \q{Saved
55ba634a 68Sessions} input box. (The server name is often a good choice for a
d60c975d 69saved session name.) Then press the \q{Save} button. Your saved
55ba634a 70session name should now appear in the list box.
71
72\b To reload a saved session: single-click to select the session
d60c975d 73name in the list box, and then press the \q{Load} button. Your saved
55ba634a 74settings should all appear in the configuration panel.
75
76\b To modify a saved session: first load it as described above. Then
77make the changes you want. Come back to the Session panel,
78single-click to select the session name in the list box, and press
d60c975d 79the \q{Save} button. The new settings will be saved over the top of
55ba634a 80the old ones.
81
82\b To start a saved session immediately: double-click on the session
83name in the list box.
84
85\b To delete a saved session: single-click to select the session
d60c975d 86name in the list box, and then press the \q{Delete} button.
55ba634a 87
88Each saved session is independent of the Default Settings
89configuration. If you change your preferences and update Default
90Settings, you must also update every saved session separately.
91
92\S{config-closeonexit} \q{Close Window on Exit}
93
70133c0e 94\cfg{winhelp-topic}{session.coe}
95
add788fc 96Finally in the Session panel, there is an option labelled \q{Close
97Window on Exit}. This controls whether the PuTTY session window
98disappears as soon as the session inside it terminates. If you are
99likely to want to copy and paste text out of the session after it
100has terminated, you should arrange this option to be off.
101
102\q{Close Window On Exit} has three settings. \q{Always} means always
103close the window on exit; \q{Never} means never close on exit
104(always leave the window open). The third setting, and the default
105one, is \q{Only on clean exit}. In this mode, a session which
106terminates normally will cause its window to close, but one which is
107aborted unexpectedly by network trouble or a confusing message from
108the server will leave the window up.
109
110\H{config-logging} The Logging panel
111
70133c0e 112\cfg{winhelp-topic}{logging.main}
113
add788fc 114The Logging configuration panel allows you to save log files of your
115PuTTY sessions, for debugging, analysis or future reference.
116
117The main option is a radio-button set that specifies whether PuTTY
118will log anything at all. The options are
119
120\b \q{Logging turned off completely}. This is the default option; in
121this mode PuTTY will not create a log file at all.
122
123\b \q{Log printable output only}. In this mode, a log file will be
124created and written to, but only printable text will be saved into
125it. The various terminal control codes that are typically sent down
126an interactive session alongside the printable text will be omitted.
127This might be a useful mode if you want to read a log file in a text
128editor and hope to be able to make sense of it.
129
130\b \q{Log all session output}. In this mode, \e{everything} sent by
131the server into your terminal session is logged. If you view the log
132file in a text editor, therefore, you may well find it full of
133strange control characters. This is a particularly useful mode if
134you are experiencing problems with PuTTY's terminal handling: you
135can record everything that went to the terminal, so that someone
136else can replay the session later in slow motion and watch to see
137what went wrong.
138
00db133f 139\b \q{Log SSH packet data}. In this mode (which is only used by SSH
140connections), the SSH message packets sent over the encrypted
141connection are written to the log file. You might need this to debug
142a network-level problem, or more likely to send to the PuTTY authors
143as part of a bug report. \e{BE WARNED} that if you log in using a
144password, the password will appear in the log file, so be sure to
145edit it out before sending the log file to anyone else!
146
add788fc 147\S{config-logfilename} \q{Log file name}
148
70133c0e 149\cfg{winhelp-topic}{logging.filename}
150
add788fc 151In this edit box you enter the name of the file you want to log the
152session to. The \q{Browse} button will let you look around your file
153system to find the right place to put the file; or if you already
154know exactly where you want it to go, you can just type a pathname
155into the edit box.
156
157There are a few special features in this box. If you use the \c{&}
158character in the file name box, PuTTY will insert details of the
159current session in the name of the file it actually opens. The
160precise replacements it will do are:
161
162\b \c{&Y} will be replaced by the current year, as four digits.
163
164\b \c{&M} will be replaced by the current month, as two digits.
165
166\b \c{&D} will be replaced by the current day of the month, as two
167digits.
168
169\b \c{&T} will be replaced by the current time, as six digits
170(HHMMSS) with no punctuation.
171
172\b \c{&H} will be replaced by the host name you are connecting to.
173
174For example, if you enter the host name
175\c{c:\\puttylogs\\log-&h-&y&m&d-&t.dat}, you will end up with files looking
176like
177
178\c log-server1.example.com-20010528-110859.dat
179\c log-unixbox.somewhere.org-20010611-221001.dat
180
181\S{config-logfileexists} \q{What to do if the log file already exists}
182
70133c0e 183\cfg{winhelp-topic}{logging.exists}
184
add788fc 185This control allows you to specify what PuTTY should do if it tries
186to start writing to a log file and it finds the file already exists.
187You might want to automatically destroy the existing log file and
188start a new one with the same name. Alternatively, you might want to
189open the existing log file and add data to the \e{end} of it.
190Finally (the default option), you might not want to have any
191automatic behaviour, but to ask the user every time the problem
192comes up.
55ba634a 193
194\H{config-terminal} The Terminal panel
195
196The Terminal configuration panel allows you to control the behaviour
197of PuTTY's terminal emulation.
198
199\S{config-autowrap} \q{Auto wrap mode initially on}
200
70133c0e 201\cfg{winhelp-topic}{terminal.autowrap}
202
55ba634a 203Auto wrap mode controls what happens when text printed in a PuTTY
204window reaches the right-hand edge of the window.
205
206With auto wrap mode on, if a long line of text reaches the
207right-hand edge, it will wrap over on to the next line so you can
208still see all the text. With auto wrap mode off, the cursor will
209stay at the right-hand edge of the screen, and all the characters in
210the line will be printed on top of each other.
211
212If you are running a full-screen application and you occasionally
213find the screen scrolling up when it looks as if it shouldn't, you
214could try turning this option off.
215
216Auto wrap mode can be turned on and off by control sequences sent by
217the server. This configuration option only controls the \e{default}
d60c975d 218state. If you modify this option in mid-session using \q{Change
2f8d6d43 219Settings}, you will need to reset the terminal (see
220\k{reset-terminal}) before the change takes effect.
55ba634a 221
222\S{config-decom} \q{DEC Origin Mode initially on}
223
70133c0e 224\cfg{winhelp-topic}{terminal.decom}
225
55ba634a 226DEC Origin Mode is a minor option which controls how PuTTY
227interprets cursor-position control sequences sent by the server.
228
229The server can send a control sequence that restricts the scrolling
230region of the display. For example, in an editor, the server might
231reserve a line at the top of the screen and a line at the bottom,
232and might send a control sequence that causes scrolling operations
233to affect only the remaining lines.
234
235With DEC Origin Mode on, cursor coordinates are counted from the top
236of the scrolling region. With it turned off, cursor coordinates are
237counted from the top of the whole screen regardless of the scrolling
238region.
239
240It is unlikely you would need to change this option, but if you find
241a full-screen application is displaying pieces of text in what looks
242like the wrong part of the screen, you could try turning DEC Origin
243Mode on to see whether that helps.
244
2f8d6d43 245DEC Origin Mode can be turned on and off by control sequences sent
246by the server. This configuration option only controls the
247\e{default} state. If you modify this option in mid-session using
248\q{Change Settings}, you will need to reset the terminal (see
249\k{reset-terminal}) before the change takes effect.
55ba634a 250
251\S{config-crlf} \q{Implicit CR in every LF}
252
70133c0e 253\cfg{winhelp-topic}{terminal.lfhascr}
254
55ba634a 255Most servers send two control characters, CR and LF, to start a new
256line of the screen. The CR character makes the cursor return to the
257left-hand side of the screen. The LF character makes the cursor move
258one line down (and might make the screen scroll).
259
260Some servers only send LF, and expect the terminal to move the
261cursor over to the left automatically. If you come across a server
262that does this, you will see a stepped effect on the screen, like
263this:
264
265\c First line of text
266\c Second line
267\c Third line
268
269If this happens to you, try enabling the \q{Implicit CR in every LF}
270option, and things might go back to normal:
271
272\c First line of text
273\c Second line
274\c Third line
275
55ba634a 276\S{config-erase} \q{Use background colour to erase screen}
277
70133c0e 278\cfg{winhelp-topic}{terminal.bce}
279
55ba634a 280Not all terminals agree on what colour to turn the screen when the
281server sends a \q{clear screen} sequence. Some terminals believe the
282screen should always be cleared to the \e{default} background
283colour. Others believe the screen should be cleared to whatever the
284server has selected as a background colour.
285
286There exist applications that expect both kinds of behaviour.
287Therefore, PuTTY can be configured to do either.
288
289With this option disabled, screen clearing is always done in the
290default background colour. With this option enabled, it is done in
291the \e{current} background colour.
292
2f8d6d43 293Background-colour erase can be turned on and off by control
294sequences sent by the server. This configuration option only
295controls the \e{default} state. If you modify this option in
296mid-session using \q{Change Settings}, you will need to reset the
297terminal (see \k{reset-terminal}) before the change takes effect.
298
55ba634a 299\S{config-blink} \q{Enable blinking text}
300
70133c0e 301\cfg{winhelp-topic}{terminal.blink}
302
55ba634a 303The server can ask PuTTY to display text that blinks on and off.
304This is very distracting, so PuTTY allows you to turn blinking text
305off completely.
306
2f8d6d43 307When blinking text is disabled and the server attempts to make some
308text blink, PuTTY will instead display the text with a bolded
309background colour.
310
311Blinking text can be turned on and off by control sequences sent by
312the server. This configuration option only controls the \e{default}
313state. If you modify this option in mid-session using \q{Change
314Settings}, you will need to reset the terminal (see
315\k{reset-terminal}) before the change takes effect.
316
a5a6cb30 317\S{config-answerback} \q{Answerback to ^E}
318
70133c0e 319\cfg{winhelp-topic}{terminal.answerback}
320
a5a6cb30 321This option controls what PuTTY will send back to the server if the
322server sends it the ^E enquiry character. Normally it just sends
323the string \q{PuTTY}.
324
2f8d6d43 325If you accidentally write the contents of a binary file to your
326terminal, you will probably find that it contains more than one ^E
327character, and as a result your next command line will probably read
328\q{PuTTYPuTTYPuTTY...} as if you had typed the answerback string
329multiple times at the keyboard. If you set the answerback string to
330be empty, this problem should go away, but doing so might cause
331other problems.
332
fa5d6e5e 333Note that this is \e{not} the feature of PuTTY which the server will
334typically use to determine your terminal type. That feature is the
335\q{Terminal-type string} in the Connection panel; see
336\k{config-termtype} for details.
337
add788fc 338\S{config-localecho} \q{Local echo}
55ba634a 339
70133c0e 340\cfg{winhelp-topic}{terminal.localecho}
341
add788fc 342With local echo disabled, characters you type into the PuTTY window
343are not echoed in the window \e{by PuTTY}. They are simply sent to
344the server. (The \e{server} might choose to echo them back to you;
345this can't be controlled from the PuTTY control panel.)
55ba634a 346
add788fc 347Some types of session need local echo, and many do not. In its
348default mode, PuTTY will automatically attempt to deduce whether or
349not local echo is appropriate for the session you are working in. If
350you find it has made the wrong decision, you can use this
351configuration option to override its choice: you can force local
352echo to be turned on, or force it to be turned off, instead of
353relying on the automatic detection.
55ba634a 354
add788fc 355\S{config-localedit} \q{Local line editing}
55ba634a 356
70133c0e 357\cfg{winhelp-topic}{terminal.localedit}
358
add788fc 359Normally, every character you type into the PuTTY window is sent
360immediately to the server the moment you type it.
361
362If you enable local line editing, this changes. PuTTY will let you
363edit a whole line at a time locally, and the line will only be sent
364to the server when you press Return. If you make a mistake, you can
365use the Backspace key to correct it before you press Return, and the
366server will never see the mistake.
367
368Since it is hard to edit a line locally without being able to see
369it, local line editing is mostly used in conjunction with local echo
370(\k{config-localecho}). This makes it ideal for use in raw mode
371\#{FIXME} or when connecting to MUDs or talkers. (Although some more
372advanced MUDs do occasionally turn local line editing on and turn
373local echo off, in order to accept a password from the user.)
374
375Some types of session need local line editing, and many do not. In
376its default mode, PuTTY will automatically attempt to deduce whether
377or not local line editing is appropriate for the session you are
378working in. If you find it has made the wrong decision, you can use
379this configuration option to override its choice: you can force
380local line editing to be turned on, or force it to be turned off,
381instead of relying on the automatic detection.
55ba634a 382
b44b307a 383\S{config-printing} Remote-controlled printing
384
385\cfg{winhelp-topic}{terminal.printing}
386
387A lot of VT100-compatible terminals support printing under control
388of the remote server. PuTTY supports this feature as well, but it is
389turned off by default.
390
391To enable remote-controlled printing, choose a printer from the
392\q{Printer to send ANSI printer output to} drop-down list box. This
393should allow you to select from all the printers you have installed
394drivers for on your computer. Alternatively, you can type the
395network name of a networked printer (for example,
396\c{\\\\printserver\\printer1}) even if you haven't already
397installed a driver for it on your own machine.
398
399When the remote server attempts to print some data, PuTTY will send
400that data to the printer \e{raw} - without translating it,
401attempting to format it, or doing anything else to it. It is up to
402you to ensure your remote server knows what type of printer it is
403talking to.
404
405Since PuTTY sends data to the printer raw, it cannot offer options
406such as portrait versus landscape, print quality, or paper tray
407selection. All these things would be done by your PC printer driver
408(which PuTTY bypasses); if you need them done, you will have to find
409a way to configure your remote server to do them.
410
411To disable remote printing again, choose \q{None (printing
412disabled)} from the printer selection list. This is the default
413state.
414
55ba634a 415\H{config-keyboard} The Keyboard panel
416
1630bb61 417The Keyboard configuration panel allows you to control the behaviour
418of the keyboard in PuTTY.
419
55ba634a 420\S{config-backspace} Changing the action of the Backspace key
421
70133c0e 422\cfg{winhelp-topic}{keyboard.backspace}
423
1630bb61 424Some terminals believe that the Backspace key should send the same
425thing to the server as Control-H (ASCII code 8). Other terminals
426believe that the Backspace key should send ASCII code 127 (usually
427known as Control-?) so that it can be distinguished from Control-H.
428This option allows you to choose which code PuTTY generates when you
429press Backspace.
430
431If you are connecting to a Unix system, you will probably find that
432the Unix \c{stty} command lets you configure which the server
433expects to see, so you might not need to change which one PuTTY
434generates. On other systems, the server's expectation might be fixed
435and you might have no choice but to configure PuTTY.
436
437If you do have the choice, we recommend configuring PuTTY to
438generate Control-? and configuring the server to expect it, because
439that allows applications such as \c{emacs} to use Control-H for
440help.
441
55ba634a 442\S{config-homeend} Changing the action of the Home and End keys
443
70133c0e 444\cfg{winhelp-topic}{keyboard.homeend}
445
1630bb61 446The Unix terminal emulator \c{rxvt} disagrees with the rest of the
447world about what character sequences should be sent to the server by
448the Home and End keys.
449
450\c{xterm}, and other terminals, send \c{ESC [1~} for the Home key,
451and \c{ESC [4~} for the End key. \c{rxvt} sends \c{ESC [H} for the
452Home key and \c{ESC [Ow} for the End key.
453
454If you find an application on which the Home and End keys aren't
455working, you could try switching this option to see if it helps.
456
55ba634a 457\S{config-funkeys} Changing the action of the function keys and keypad
458
70133c0e 459\cfg{winhelp-topic}{keyboard.funkeys}
460
1630bb61 461This option affects the function keys (F1 to F12) and the top row of
462the numeric keypad.
463
464\b In the default mode, labelled \c{ESC [n~}, the function keys
465generate sequences like \c{ESC [11~}, \c{ESC [12~} and so on. This
466matches the general behaviour of Digital's terminals.
467
468\b In Linux mode, F6 to F12 behave just like the default mode, but
469F1 to F5 generate \c{ESC [[A} through to \c{ESC [[E}. This mimics the
470Linux virtual console.
471
472\b In Xterm R6 mode, F5 to F12 behave like the default mode, but F1
473to F4 generate \c{ESC OP} through to \c{ESC OS}, which are the
474sequences produced by the top row of the \e{keypad} on Digital's
475terminals.
476
477\b In VT400 mode, all the function keys behave like the default
478mode, but the actual top row of the numeric keypad generates \c{ESC
479OP} through to \c{ESC OS}.
480
350ee898 481\b In VT100+ mode, the function keys generate \c{ESC OP} through to
482\c{ESC O[}
483
484\b In SCO mode, the function keys F1 to F12 generate \c{ESC [M}
485through to \c{ESC [X}. Together with shift, they generate \c{ESC [Y}
486through to \c{ESC [j}. With control they generate \c{ESC [k} through
487to \c{ESC [v}, and with shift and control together they generate
488\c{ESC [w} through to \c{ESC [\{}.
489
1630bb61 490If you don't know what any of this means, you probably don't need to
491fiddle with it.
492
55ba634a 493\S{config-appcursor} Controlling Application Cursor Keys mode
494
70133c0e 495\cfg{winhelp-topic}{keyboard.appcursor}
496
1630bb61 497Application Cursor Keys mode is a way for the server to change the
498control sequences sent by the arrow keys. In normal mode, the arrow
499keys send \c{ESC [A} through to \c{ESC [D}. In application mode,
500they send \c{ESC OA} through to \c{ESC OD}.
501
502Application Cursor Keys mode can be turned on and off by the server,
503depending on the application. PuTTY allows you to configure the
0d2086c5 504initial state.
505
506You can also disable application cursor keys mode completely, using
507the \q{Features} configuration panel; see
508\k{config-features-application}.
1630bb61 509
55ba634a 510\S{config-appkeypad} Controlling Application Keypad mode
511
70133c0e 512\cfg{winhelp-topic}{keyboard.appkeypad}
513
1630bb61 514Application Keypad mode is a way for the server to change the
515behaviour of the numeric keypad.
516
517In normal mode, the keypad behaves like a normal Windows keypad:
518with NumLock on, the number keys generate numbers, and with NumLock
519off they act like the arrow keys and Home, End etc.
520
521In application mode, all the keypad keys send special control
522sequences, \e{including} Num Lock. Num Lock stops behaving like Num
523Lock and becomes another function key.
524
525Depending on which version of Windows you run, you may find the Num
526Lock light still flashes on and off every time you press Num Lock,
527even when application mode is active and Num Lock is acting like a
528function key. This is unavoidable.
529
530Application keypad mode can be turned on and off by the server,
531depending on the application. PuTTY allows you to configure the
0d2086c5 532initial state.
533
534You can also disable application keypad mode completely, using the
535\q{Features} configuration panel; see
536\k{config-features-application}.
1630bb61 537
55ba634a 538\S{config-nethack} Using NetHack keypad mode
539
70133c0e 540\cfg{winhelp-topic}{keyboard.nethack}
541
1630bb61 542PuTTY has a special mode for playing NetHack. You can enable it by
543selecting \q{NetHack} in the \q{Initial state of numeric keypad}
544control.
545
546In this mode, the numeric keypad keys 1-9 generate the NetHack
547movement commands (\cw{hjklyubn}). The 5 key generates the \c{.}
548command (do nothing).
549
550Better still, pressing Shift with the keypad keys generates the
551capital forms of the commands (\cw{HJKLYUBN}), which tells NetHack
552to keep moving you in the same direction until you encounter
553something interesting.
554
555For some reason, this feature only works properly when Num Lock is
556on. We don't know why.
557
55ba634a 558\S{config-compose} Enabling a DEC-like Compose key
559
70133c0e 560\cfg{winhelp-topic}{keyboard.compose}
561
1630bb61 562DEC terminals have a Compose key, which provides an easy-to-remember
563way of typing accented characters. You press Compose and then type
564two more characters. The two characters are \q{combined} to produce
565an accented character. The choices of character are designed to be
566easy to remember; for example, composing \q{e} and \q{`} produces
567the \q{\u00e8{e-grave}} character.
568
569If you enable the \q{Application and AltGr act as Compose key}
570option, the Windows Application key and the AltGr key will both have
571this behaviour.
572
add788fc 573\S{config-ctrlalt} \q{Control-Alt is different from AltGr}
b5752f1b 574
70133c0e 575\cfg{winhelp-topic}{keyboard.ctrlalt}
576
add788fc 577Some old keyboards do not have an AltGr key, which can make it
578difficult to type some characters. PuTTY can be configured to treat
579the key combination Ctrl + Left Alt the same way as the AltGr key.
b5752f1b 580
add788fc 581By default, this checkbox is checked, and the key combination Ctrl +
582Left Alt does something completely different. PuTTY's usual handling
583of the left Alt key is to prefix the Escape (Control-\cw{[})
584character to whatever character sequence the rest of the keypress
585would generate. For example, Alt-A generates Escape followed by
586\c{a}. So Alt-Ctrl-A would generate Escape, followed by Control-A.
b5752f1b 587
add788fc 588If you uncheck this box, Ctrl-Alt will become a synonym for AltGr,
589so you can use it to type extra graphic characters if your keyboard
590has any.
b5752f1b 591
a5a6cb30 592\H{config-bell} The Bell panel
593
594The Bell panel controls the terminal bell feature: the server's
595ability to cause PuTTY to beep at you.
596
597In the default configuration, when the server sends the character
598with ASCII code 7 (Control-G), PuTTY will play the Windows Default
599Beep sound. This is not always what you want the terminal bell
600feature to do; the Bell panel allows you to configure alternative
601actions.
602
603\S{config-bellstyle} \q{Set the style of bell}
604
70133c0e 605\cfg{winhelp-topic}{bell.style}
606
a5a6cb30 607This control allows you to select various different actions to occur
608on a terminal bell:
609
610\b Selecting \q{None} disables the bell completely. In this mode,
611the server can send as many Control-G characters as it likes and
612nothing at all will happen.
613
614\b \q{Play Windows Default Sound} is the default setting. It causes
615the Windows \q{Default Beep} sound to be played. To change what this
616sound is, or to test it if nothing seems to be happening, use the
617Sound configurer in the Windows Control Panel.
618
619\b \q{Play a custom sound file} allows you to specify a particular
620sound file to be used by PuTTY alone, or even by a particular
621individual PuTTY session. This allows you to distinguish your PuTTY
622beeps from any other beeps on the system. If you select this option,
623you will also need to enter the name of your sound file in the edit
624control \q{Custom sound file to play as a bell}.
625
626\b \q{Visual bell} is a silent alternative to a beeping computer. In
627this mode, when the server sends a Control-G, the whole PuTTY window
628will flash white for a fraction of a second.
629
630\S{config-belltaskbar} \q{Taskbar/caption indication on bell}
631
70133c0e 632\cfg{winhelp-topic}{bell.taskbar}
633
a5a6cb30 634This feature controls what happens to the PuTTY window's entry in
635the Windows Taskbar if a bell occurs while the window does not have
636the input focus.
637
638In the default state (\q{Disabled}) nothing unusual happens.
639
640If you select \q{Steady}, then when a bell occurs and the window is
641not in focus, the window's Taskbar entry and its title bar will
642change colour to let you know that PuTTY session is asking for your
643attention. The change of colour will persist until you select the
644window, so you can leave several PuTTY windows minimised in your
645terminal, go away from your keyboard, and be sure not to have missed
646any important beeps when you get back.
647
648\q{Flashing} is even more eye-catching: the Taskbar entry will
649continuously flash on and off until you select the window.
650
651\S{config-bellovl} \q{Control the bell overload behaviour}
652
70133c0e 653\cfg{winhelp-topic}{bell.overload}
654
a5a6cb30 655A common user error in a terminal session is to accidentally run the
656Unix command \c{cat} (or equivalent) on an inappropriate file type,
657such as an executable, image file, or ZIP file. This produces a huge
658stream of non-text characters sent to the terminal, which typically
659includes a lot of bell characters. As a result of this the terminal
660often doesn't stop beeping for ten minutes, and everybody else in
661the office gets annoyed.
662
663To try to avoid this behaviour, or any other cause of excessive
664beeping, PuTTY includes a bell overload management feature. In the
665default configuration, receiving more than five bell characters in a
666two-second period will cause the overload feature to activate. Once
667the overload feature is active, further bells will have no effect at
668all, so the rest of your binary file will be sent to the screen in
669silence. After a period of five seconds during which no further
670bells are received, the overload feature will turn itself off again
671and bells will be re-enabled.
672
673If you want this feature completely disabled, you can turn it off
674using the checkbox \q{Bell is temporarily disabled when over-used}.
675
676Alternatively, if you like the bell overload feature but don't agree
677with the settings, you can configure the details: how many bells
678constitute an overload, how short a time period they have to arrive
679in to do so, and how much silent time is required before the
680overload feature will deactivate itself.
681
0d2086c5 682\H{config-features} The Features panel
683
684PuTTY's terminal emulation is very highly featured, and can do a lot
685of things under remote server control. Some of these features can
686cause problems due to buggy or strangely configured server
687applications.
688
689The Features configuration panel allows you to disable some of
690PuTTY's more advanced terminal features, in case they cause trouble.
691
692\S{config-features-application} Disabling application keypad and cursor keys
693
694\cfg{winhelp-topic}{features.application}
695
696Application keypad mode (see \k{config-appkeypad}) and application
697cursor keys mode (see \k{config-appcursor}) alter the behaviour of
698the keypad and cursor keys. Some applications enable these modes but
699then do not deal correctly with the modified keys. You can force
700these modes to be permanently disabled no matter what the server
701tries to do.
702
c0d36a72 703\S{config-features-mouse} Disabling \cw{xterm}-style mouse reporting
704
705\cfg{winhelp-topic}{features.mouse}
706
707PuTTY allows the server to send control codes that let it take over
708the mouse and use it for purposes other than copy and paste.
709Applications which use this feature include the text-mode web
710browser \c{links}, the Usenet newsreader \c{trn} version 4, and the
711file manager \c{mc} (Midnight Commander).
712
713If you find this feature inconvenient, you can disable it using the
714\q{Disable xterm-style mouse reporting} control. With this box
715ticked, the mouse will \e{always} do copy and paste in the normal
716way.
717
718Note that even if the application takes over the mouse, you can
719still manage PuTTY's copy and paste by holding down the Shift key
720while you select and paste, unless you have deliberately turned this
721feature off (see \k{config-mouseshift}).
722
0d2086c5 723\S{config-features-resize} Disabling remote terminal resizing
724
725\cfg{winhelp-topic}{features.resize}
726
727PuTTY has the ability to change the terminal's size and position in
728response to commands from the server. If you find PuTTY is doing
729this unexpectedly or inconveniently, you can tell PuTTY not to
730respond to those server commands.
731
732\S{config-features-altscreen} Disabling switching to the alternate screen
733
734\cfg{winhelp-topic}{features.altscreen}
735
736Many terminals, including PuTTY, support an \q{alternate screen}.
737This is the same size as the ordinary terminal screen, but separate.
738Typically a screen-based program such as a text editor might switch
739the terminal to the alternate screen before starting up. Then at the
740end of the run, it switches back to the primary screen, and you see
741the screen contents just as they were before starting the editor.
742
743Some people prefer this not to happen. If you want your editor to
744run in the same screen as the rest of your terminal activity, you
745can disable the alternate screen feature completely.
746
747\S{config-features-retitle} Disabling remote window title changing
748
749\cfg{winhelp-topic}{features.retitle}
750
751PuTTY has the ability to change the window title in response to
752commands from the server. If you find PuTTY is doing this
753unexpectedly or inconveniently, you can tell PuTTY not to respond to
754those server commands.
755
756\S{config-features-dbackspace} Disabling destructive backspace
757
758\cfg{winhelp-topic}{features.dbackspace}
759
760Normally, when PuTTY receives character 127 (^?) from the server, it
761will perform a \q{destructive backspace}: move the cursor one space
762left and delete the character under it. This can apparently cause
763problems in some applications, so PuTTY provides the ability to
764configure character 127 to perform a normal backspace (without
765deleting a character) instead.
766
767\S{config-features-charset} Disabling remote character set
768configuration
769
770\cfg{winhelp-topic}{features.charset}
771
772PuTTY has the ability to change its character set configuration in
773response to commands from the server. Some programs send these
774commands unexpectedly or inconveniently. In particular, BitchX (an
775IRC client) seems to have a habit of reconfiguring the character set
776to something other than the user intended.
777
778If you find that accented characters are not showing up the way you
779expect them to, particularly if you're running BitchX, you could try
780disabling the remote character set configuration commands.
781
55ba634a 782\H{config-window} The Window panel
783
1630bb61 784The Window configuration panel allows you to control aspects of the
a5a6cb30 785PuTTY window.
1630bb61 786
55ba634a 787\S{config-winsize} Setting the size of the PuTTY window
788
70133c0e 789\cfg{winhelp-topic}{window.size}
790
d60c975d 791The \q{Rows} and \q{Columns} boxes let you set the PuTTY window to a
1630bb61 792precise size. Of course you can also drag the window to a new size
793while a session is running.
794
a5a6cb30 795\S{config-winsizelock} What to do when the window is resized
add788fc 796
70133c0e 797\cfg{winhelp-topic}{window.resize}
798
add788fc 799These options allow you to control what happens when the user tries
800to resize the PuTTY window.
801
a5a6cb30 802When you resize the PuTTY window, one of four things can happen:
add788fc 803
804\b Nothing (if you have completely disabled resizes).
805
806\b The font size can stay the same and the number of rows and
807columns in the terminal can change.
808
809\b The number of rows and columns in the terminal can stay the same,
810and the font size can change.
811
a5a6cb30 812\b You can allow PuTTY to change \e{either} the terminal size or the
813font size. In this mode it will change the terminal size most of the
814time, but enlarge the font when you maximise the window.
815
add788fc 816You can control which of these happens using the \q{Lock terminal
817size against resizing} and \q{Lock font size against resizing}
818options. If you lock both, the window will refuse to be resized at
819all. If you lock just the terminal size, the font size will change
820when you resize the window. If you lock just the font size, the
821terminal size will change when you resize the window.
1630bb61 822
55ba634a 823\S{config-scrollback} Controlling scrollback
824
70133c0e 825\cfg{winhelp-topic}{window.scrollback}
826
fc5a8711 827These options let you configure the way PuTTY keeps text after it
828scrolls off the top of the screen (see \k{using-scrollback}).
1630bb61 829
830The \q{Lines of scrollback} box lets you configure how many lines of
a5a6cb30 831text PuTTY keeps. The \q{Display scrollbar} options allow you to
1630bb61 832hide the scrollbar (although you can still view the scrollback using
a5a6cb30 833Shift-PgUp and Shift-PgDn). You can separately configure whether the
834scrollbar is shown in full-screen mode and in normal modes.
1630bb61 835
836If you are viewing part of the scrollback when the server sends more
837text to PuTTY, the screen will revert to showing the current
838terminal contents. You can disable this behaviour by turning off
839\q{Reset scrollback on display activity}. You can also make the
840screen revert when you press a key, by turning on \q{Reset
841scrollback on keypress}.
842
55ba634a 843\H{config-appearance} The Appearance panel
844
1630bb61 845The Appearance configuration panel allows you to control aspects of
a5a6cb30 846the appearance of PuTTY's window.
1630bb61 847
55ba634a 848\S{config-cursor} Controlling the appearance of the cursor
849
70133c0e 850\cfg{winhelp-topic}{appearance.cursor}
851
26c8f51a 852The \q{Cursor appearance} option lets you configure the cursor to be
853a block, an underline, or a vertical line. A block cursor becomes an
854empty box when the window loses focus; an underline or a vertical
855line becomes dotted.
856
857The \q{Cursor blinks} option makes the cursor blink on and off. This
858works in any of the cursor modes.
55ba634a 859
860\S{config-font} Controlling the font used in the terminal window
861
70133c0e 862\cfg{winhelp-topic}{appearance.font}
863
add788fc 864This option allows you to choose what font, in what size, the PuTTY
865terminal window uses to display the text in the session. You will be
866offered a choice from all the fixed-width fonts installed on the
867system. (VT100-style terminal handling can only deal with fixed-
868width fonts.)
26c8f51a 869
55ba634a 870\S{config-title} Controlling the window title
871
70133c0e 872\cfg{winhelp-topic}{appearance.title}
873
add788fc 874The \q{Window title} edit box allows you to set the title of the
875PuTTY window. By default the window title will contain the host name
876followed by \q{PuTTY}, for example \c{server1.example.com - PuTTY}.
877If you want a different window title, this is where to set it.
878
879PuTTY allows the server to send \c{xterm} control sequences which
880modify the title of the window in mid-session. There is also an
881\c{xterm} sequence to modify the title of the window's \e{icon}.
882This makes sense in a windowing system where the window becomes an
883icon when minimised, such as Windows 3.1 or most X Window System
884setups; but in the Windows 95-like user interface it isn't as
885applicable. By default PuTTY's window title and Taskbar caption will
886change into the server-supplied icon title if you minimise the PuTTY
887window, and change back to the server-supplied window title if you
888restore it. (If the server has not bothered to supply a window or
889icon title, none of this will happen.) By checking the box marked
890\q{Avoid ever using icon title}, you can arrange that PuTTY will
891always display the window title, and completely ignore any icon
892titles the server sends it.
893
894\S{config-mouseptr} \q{Hide mouse pointer when typing in window}
895
70133c0e 896\cfg{winhelp-topic}{appearance.hidemouse}
897
add788fc 898If you enable this option, the mouse pointer will disappear if the
899PuTTY window is selected and you press a key. This way, it will not
900obscure any of the text in the window while you work in your
901session. As soon as you move the mouse, the pointer will reappear.
902
903This option is disabled by default, so the mouse pointer remains
904visible at all times.
905
906\S{config-winborder} Controlling the window border
907
70133c0e 908\cfg{winhelp-topic}{appearance.border}
909
add788fc 910PuTTY allows you to configure the appearance of the window border to
911some extent.
912
913The checkbox marked \q{Sunken-edge border} changes the appearance of
914the window border to something more like a DOS box: the inside edge
915of the border is highlighted as if it sank down to meet the surface
916inside the window. This makes the border a little bit thicker as
917well. It's hard to describe well. Try it and see if you like it.
918
919You can also configure a completely blank gap between the text in
920the window and the border, using the \q{Gap between text and window
921edge} control. By default this is set at one pixel. You can reduce
922it to zero, or increase it further.
923
a5a6cb30 924\H{config-behaviour} The Behaviour panel
925
926The Behaviour configuration panel allows you to control aspects of
927the behaviour of PuTTY's window.
928
929\S{config-warnonclose} \q{Warn before closing window}
930
70133c0e 931\cfg{winhelp-topic}{behaviour.closewarn}
932
a5a6cb30 933If you press the Close button in a PuTTY window that contains a
934running session, PuTTY will put up a warning window asking if you
935really meant to close the window. A window whose session has already
936terminated can always be closed without a warning.
937
938If you want to be able to close a window quickly, you can disable
939the \q{Warn before closing window} option.
940
941\S{config-altf4} \q{Window closes on ALT-F4}
942
70133c0e 943\cfg{winhelp-topic}{behaviour.altf4}
944
a5a6cb30 945By default, pressing ALT-F4 causes the window to close (or a warning
946box to appear; see \k{config-warnonclose}). If you disable the
947\q{Window closes on ALT-F4} option, then pressing ALT-F4 will simply
948send a key sequence to the server.
949
950\S{config-altspace} \q{System menu appears on ALT-Space}
951
70133c0e 952\cfg{winhelp-topic}{behaviour.altspace}
953
a5a6cb30 954If this option is enabled, then pressing ALT-Space will bring up the
955PuTTY window's menu, like clicking on the top left corner. If it is
956disabled, then pressing ALT-Space will just send \c{ESC SPACE} to
957the server.
958
959Some accessibility programs for Windows may need this option
960enabling to be able to control PuTTY's window successfully. For
961instance, Dragon NaturallySpeaking requires it both to open the
962system menu via voice, and to close, minimise, maximise and restore
963the window.
964
965\S{config-altonly} \q{System menu appears on Alt alone}
966
70133c0e 967\cfg{winhelp-topic}{behaviour.altonly}
968
a5a6cb30 969If this option is enabled, then pressing and releasing ALT will
970bring up the PuTTY window's menu, like clicking on the top left
971corner. If it is disabled, then pressing and releasing ALT will have
972no effect.
973
974\S{config-alwaysontop} \q{Ensure window is always on top}
975
70133c0e 976\cfg{winhelp-topic}{behaviour.alwaysontop}
977
a5a6cb30 978If this option is enabled, the PuTTY window will stay on top of all
979other windows.
980
981\S{config-fullscreen} \q{Full screen on Alt-Enter}
982
70133c0e 983\cfg{winhelp-topic}{behaviour.altenter}
984
a5a6cb30 985If this option is enabled, then pressing Alt-Enter will cause the
2f8d6d43 986PuTTY window to become full-screen. Pressing Alt-Enter again will
987restore the previous window size.
988
989The full-screen feature is also available from the System menu, even
990when it is configured not to be available on the Alt-Enter key. See
991\k{using-fullscreen}.
a5a6cb30 992
55ba634a 993\H{config-translation} The Translation panel
994
1630bb61 995The Translation configuration panel allows you to control the
996translation between the character set understood by the server and
997the character set understood by PuTTY.
998
add788fc 999\S{config-charset} Controlling character set translation
1000
70133c0e 1001\cfg{winhelp-topic}{translation.codepage}
1002
add788fc 1003During an interactive session, PuTTY receives a stream of 8-bit
1004bytes from the server, and in order to display them on the screen it
1005needs to know what character set to interpret them in.
1006
1007There are a lot of character sets to choose from. The \q{Received
1008data assumed to be in which character set} option lets you select
1009one. By default PuTTY will attempt to choose a character set that is
1010right for your locale as reported by Windows; if it gets it wrong,
1011you can select a different one using this control.
1012
1013A few notable character sets are:
1014
1015\b The ISO-8859 series are all standard character sets that include
1016various accented characters appropriate for different sets of
1017languages.
55ba634a 1018
add788fc 1019\b The Win125x series are defined by Microsoft, for similar
1020purposes. In particular Win1252 is almost equivalent to ISO-8859-1,
1021but contains a few extra characters such as matched quotes and the
1022Euro symbol.
55ba634a 1023
add788fc 1024\b If you want the old IBM PC character set with block graphics and
1025line-drawing characters, you can select \q{CP437}.
1026
1027\b PuTTY also supports Unicode mode, in which the data coming from
1028the server is interpreted as being in the UTF-8 encoding of Unicode.
1029If you select \q{UTF-8} as a character set you can use this mode.
1030Not all server-side applications will support it.
1031
6c8727b2 1032If you need support for a numeric code page which is not listed in
1033the drop-down list, such as code page 866, then you should be able
1034to enter its name manually (\c{CP866} for example) in the list box
1035and get the right result.
1036
add788fc 1037\S{config-cyr} \q{Caps Lock acts as Cyrillic switch}
1038
70133c0e 1039\cfg{winhelp-topic}{translation.cyrillic}
1040
add788fc 1041This feature allows you to switch between a US/UK keyboard layout
1042and a Cyrillic keyboard layout by using the Caps Lock key, if you
1043need to type (for example) Russian and English side by side in the
1044same document.
1045
1046Currently this feature is not expected to work properly if your
1047native keyboard layout is not US or UK.
1048
1049\S{config-linedraw} Controlling display of line drawing characters
1050
70133c0e 1051\cfg{winhelp-topic}{translation.linedraw}
1052
add788fc 1053VT100-series terminals allow the server to send control sequences
1054that shift temporarily into a separate character set for drawing
1055lines and boxes. PuTTY has a variety of ways to support this
1056capability. In general you should probably try lots of options until
1057you find one that your particular font supports.
1058
1059\b \q{Font has XWindows encoding} is for use with fonts that have a
1060special encoding, where the lowest 32 character positions (below the
1061ASCII printable range) contain the line-drawing characters. This is
1062unlikely to be the case with any standard Windows font; it will
1063probably only apply to custom-built fonts or fonts that have been
1064automatically converted from the X Window System.
1065
1066\b \q{Use font in both ANSI and OEM modes} tries to use the same
1067font in two different character sets, to obtain a wider range of
1068characters. This doesn't always work; some fonts claim to be a
1069different size depending on which character set you try to use.
1070
1071\b \q{Use font in OEM mode only} is more reliable than that, but can
1072miss out other characters from the main character set.
1073
1074\b \q{Poor man's line drawing} assumes that the font \e{cannot}
1075generate the line and box characters at all, so it will use the
1076\c{+}, \c{-} and \c{|} characters to draw approximations to boxes.
1077You should use this option if none of the other options works.
1078
1079\b \q{Unicode mode} tries to use the box characters that are present
1080in Unicode. For good Unicode-supporting fonts this is probably the
1081most reliable and functional option.
55ba634a 1082
1083\H{config-selection} The Selection panel
1084
1630bb61 1085The Selection panel allows you to control the way copy and paste
1086work in the PuTTY window.
1087
add788fc 1088\S{config-linedrawpaste} Controlling the pasting of line drawing
1089characters
1090
70133c0e 1091\cfg{winhelp-topic}{selection.linedraw}
1092
add788fc 1093By default, when you copy and paste a piece of the PuTTY screen that
1094contains VT100 line and box drawing characters, PuTTY will translate
1095them into the \q{poor man's} line-drawing characters \c{+}, \c{-}
1096and \c{|}. The checkbox \q{Don't translate line drawing chars}
1097disables this feature, so line-drawing characters will be pasted as
1098if they were in the normal character set. This will typically mean
1099they come out mostly as \c{q} and \c{x}, with a scattering of
1100\c{jklmntuvw} at the corners. This might be useful if you were
1101trying to recreate the same box layout in another program, for
1102example.
1103
a5a6cb30 1104\S{config-rtfpaste} Pasting in Rich Text Format
1105
70133c0e 1106\cfg{winhelp-topic}{selection.rtf}
1107
a5a6cb30 1108If you enable \q{Paste to clipboard in RTF as well as plain text},
1109PuTTY will write formatting information to the clipboard as well as
1110the actual text you copy. Currently the only effect of this will be
1111that if you paste into (say) a word processor, the text will appear
1112in the word processor in the same font PuTTY was using to display
1113it. In future it is likely that other formatting information (bold,
1114underline, colours) will be copied as well.
1115
1116This option can easily be inconvenient, so by default it is
1117disabled.
1118
55ba634a 1119\S{config-mouse} Changing the actions of the mouse buttons
1120
70133c0e 1121\cfg{winhelp-topic}{selection.buttons}
1122
add788fc 1123PuTTY's copy and paste mechanism is modelled on the Unix \c{xterm}
1124application. The X Window System uses a three-button mouse, and the
1125convention is that the left button selects, the right button extends
1126an existing selection, and the middle button pastes.
1127
1128Windows typically only has two mouse buttons, so in PuTTY's default
1129configuration, the \e{right} button pastes, and the \e{middle}
1130button (if you have one) extends a selection.
1131
1132If you have a three-button mouse and you are already used to the
1133\c{xterm} arrangement, you can select it using the \q{Action of
1134mouse buttons} control.
1135
1136\S{config-mouseshift} \q{Shift overrides application's use of mouse}
1137
70133c0e 1138\cfg{winhelp-topic}{selection.shiftdrag}
1139
add788fc 1140PuTTY allows the server to send control codes that let it take over
1141the mouse and use it for purposes other than copy and paste.
1142Applications which use this feature include the text-mode web
1143browser \c{links}, the Usenet newsreader \c{trn} version 4, and the
1144file manager \c{mc} (Midnight Commander).
1145
1146When running one of these applications, pressing the mouse buttons
1147no longer performs copy and paste. If you do need to copy and paste,
1148you can still do so if you hold down Shift while you do your mouse
1149clicks.
1150
1151However, it is possible in theory for applications to even detect
1152and make use of Shift + mouse clicks. We don't know of any
1153applications that do this, but in case someone ever writes one,
1154unchecking the \q{Shift overrides application's use of mouse}
1155checkbox will cause Shift + mouse clicks to go to the server as well
1156(so that mouse-driven copy and paste will be completely disabled).
1157
c0d36a72 1158If you want to prevent the application from taking over the mouse at
1159all, you can do this using the Features control panel; see
1160\k{config-features-mouse}.
1161
a5a6cb30 1162\S{config-rectselect} Default selection mode
1163
70133c0e 1164\cfg{winhelp-topic}{selection.rect}
1165
a5a6cb30 1166As described in \k{using-selection}, PuTTY has two modes of
1167selecting text to be copied to the clipboard. In the default mode
1168(\q{Normal}), dragging the mouse from point A to point B selects to
1169the end of the line containing A, all the lines in between, and from
1170the very beginning of the line containing B. In the other mode
1171(\q{Rectangular block}), dragging the mouse between two points
1172defines a rectangle, and everything within that rectangle is copied.
1173
1174Normally, you have to hold down Alt while dragging the mouse to
1175select a rectangular block. Using the \q{Default selection mode}
1176control, you can set rectangular selection as the default, and then
1177you have to hold down Alt to get the \e{normal} behaviour.
1178
55ba634a 1179\S{config-charclasses} Configuring word-by-word selection
1180
70133c0e 1181\cfg{winhelp-topic}{selection.charclasses}
1182
add788fc 1183PuTTY will select a word at a time in the terminal window if you
1184double-click to begin the drag. This panel allows you to control
1185precisely what is considered to be a word.
1186
1187Each character is given a \e{class}, which is a small number
1188(typically 0, 1 or 2). PuTTY considers a single word to be any
1189number of adjacent characters in the same class. So by modifying the
1190assignment of characters to classes, you can modify the word-by-word
1191selection behaviour.
1192
1193In the default configuration, the character classes are:
1194
1195\b Class 0 contains white space and control characters.
1196
1197\b Class 1 contains most punctuation.
1198
1199\b Class 2 contains letters, numbers and a few pieces of punctuation
1200(the double quote, minus sign, period, forward slash and
1201underscore).
1202
1203So, for example, if you assign the \c{@} symbol into character class
12042, you will be able to select an e-mail address with just a double
1205click.
1206
1207In order to adjust these assignments, you start by selecting a group
1208of characters in the list box. Then enter a class number in the edit
1209box below, and press the \q{Set} button.
1210
1211This mechanism currently only covers ASCII characters, because it
1212isn't feasible to expand the list to cover the whole of Unicode.
1213
7b74af11 1214Character class definitions can be modified by control sequences
1215sent by the server. This configuration option only controls the
1216\e{default} state. If you modify this option in mid-session using
1217\q{Change Settings}, you will need to reset the terminal (see
1218\k{reset-terminal}) before the change takes effect.
1219
55ba634a 1220\H{config-colours} The Colours panel
1221
1630bb61 1222The Colours panel allows you to control PuTTY's use of colour.
1223
55ba634a 1224\S{config-boldcolour} \q{Bolded text is a different colour}
1225
70133c0e 1226\cfg{winhelp-topic}{colours.bold}
1227
add788fc 1228When the server sends a control sequence indicating that some text
1229should be displayed in bold, PuTTY can handle this two ways. It can
1230either change the font for a bold version, or use the same font in a
1231brighter colour. This control lets you choose which.
1232
1233By default the box is checked, so non-bold text is displayed in
1234light grey and bold text is displayed in bright white (and similarly
1235in other colours). If you uncheck the box, bold and non-bold text
1236will be displayed in the same colour, and instead the font will
1237change to indicate the difference.
1238
55ba634a 1239\S{config-logpalette} \q{Attempt to use logical palettes}
1240
70133c0e 1241\cfg{winhelp-topic}{colours.logpal}
1242
add788fc 1243Logical palettes are a mechanism by which a Windows application
1244running on an 8-bit colour display can select precisely the colours
1245it wants instead of going with the Windows standard defaults.
1246
1247If you are not getting the colours you ask for on an 8-bit display,
1248you can try enabling this option. However, be warned that it's never
1249worked very well.
1250
55ba634a 1251\S{config-colourcfg} Adjusting the colours in the terminal window
1252
70133c0e 1253\cfg{winhelp-topic}{colours.config}
1254
add788fc 1255The main colour control allows you to specify exactly what colours
1256things should be displayed in. To modify one of the PuTTY colours,
1257use the list box to select which colour you want to modify. The RGB
1258values for that colour will appear on the right-hand side of the
1259list box. Now, if you press the \q{Modify} button, you will be
1260presented with a colour selector, in which you can choose a new
1261colour to go in place of the old one.
1262
1263PuTTY allows you to set the cursor colour, the default foreground
1264and background, and the precise shades of all the ANSI configurable
1265colours (black, red, green, yellow, blue, magenta, cyan, and white).
1266In addition, if you have selected \q{Bolded text is a different
1267colour}, you can also modify the precise shades used for the bold
1268versions of these colours.
1269
55ba634a 1270\H{config-connection} The Connection panel
1271
1630bb61 1272The Connection panel allows you to configure options that apply to
1273more than one type of connection.
1274
55ba634a 1275\S{config-termtype} \q{Terminal-type string}
1276
70133c0e 1277\cfg{winhelp-topic}{connection.termtype}
1278
add788fc 1279Most servers you might connect to with PuTTY are designed to be
1280connected to from lots of different types of terminal. In order to
1281send the right control sequences to each one, the server will need
1282to know what type of terminal it is dealing with. Therefore, each of
1283the SSH, Telnet and Rlogin protocols allow a text string to be sent
1284down the connection describing the terminal.
1285
1286PuTTY attempts to emulate the Unix \c{xterm} program, and by default
1287it reflects this by sending \c{xterm} as a terminal-type string. If
1288you find this is not doing what you want - perhaps the remote
1289terminal reports \q{Unknown terminal type} - you could try setting
1290this to something different, such as \c{vt220}.
1291
1292If you're not sure whether a problem is due to the terminal type
1293setting or not, you probably need to consult the manual for your
1294application or your server.
1295
55ba634a 1296\S{config-username} \q{Auto-login username}
1297
70133c0e 1298\cfg{winhelp-topic}{connection.username}
1299
add788fc 1300All three of the SSH, Telnet and Rlogin protocols allow you to
1301specify what user name you want to log in as, without having to type
1302it explicitly every time. (Some Telnet servers don't support this.)
1303
1304In this box you can type that user name.
1305
55ba634a 1306\S{config-keepalive} Using keepalives to prevent disconnection
1307
70133c0e 1308\cfg{winhelp-topic}{connection.keepalive}
1309
c33f3243 1310If you find your sessions are closing unexpectedly (\q{Connection
1311reset by peer}) after they have been idle for a while, you might
1312want to try using this option.
1313
add788fc 1314Some network routers and firewalls need to keep track of all
c33f3243 1315connections through them. Usually, these firewalls will assume a
1316connection is dead if no data is transferred in either direction
1317after a certain time interval. This can cause PuTTY sessions to be
1318unexpectedly closed by the firewall if no traffic is seen in the
1319session for some time.
1320
1321The keepalive option (\q{Seconds between keepalives}) allows you to
1322configure PuTTY to send data through the session at regular
1323intervals, in a way that does not disrupt the actual terminal
1324session. If you find your firewall is cutting idle connections off,
1325you can try entering a non-zero value in this field. The value is
1326measured in seconds; so, for example, if your firewall cuts
1327connections off after ten minutes then you might want to enter 300
1328seconds (5 minutes) in the box.
1329
1330Note that keepalives are not always helpful. They help if you have a
1331firewall which drops your connection after an idle period; but if
1332the network between you and the server suffers from breaks in
1333connectivity then keepalives can actually make things worse. If a
1334session is idle, and connectivity is temporarily lost between the
1335endpoints, but the connectivity is restored before either side tries
1336to send anything, then there will be no problem - neither endpoint
1337will notice that anything was wrong. However, if one side does send
1338something during the break, it will repeatedly try to re-send, and
1339eventually give up and abandon the connection. Then when
1340connectivity is restored, the other side will find that the first
1341side doesn't believe there is an open connection any more.
1342Keepalives can make this sort of problem worse, because they
1343increase the probability that PuTTY will attempt to send data during
1344a break in connectivity. Therefore, you might find they help
1345connection loss, or you might find they make it worse, depending on
1346what \e{kind} of network problems you have between you and the
1347server.
1348
1349Keepalives are only supported in Telnet and SSH; the Rlogin and Raw
1350protocols offer no way of implementing them.
1351
81e8bb1b 1352\S{config-nodelay} \q{Disable Nagle's algorithm}
1353
70133c0e 1354\cfg{winhelp-topic}{connection.nodelay}
1355
81e8bb1b 1356Nagle's algorithm is a detail of TCP/IP implementations that tries
1357to minimise the number of small data packets sent down a network
1358connection. With Nagle's algorithm enabled, PuTTY's bandwidth usage
1359will be slightly more efficient; with it disabled, you may find you
1360get a faster response to your keystrokes when connecting to some
1361types of server.
1362
1363The Nagle algorithm is disabled by default.
1364
0e8f4cda 1365\H{config-proxy} The Proxy panel
1366
1367The Proxy panel allows you to configure PuTTY to use various types
1368of proxy in order to make its network connections. The settings in
1369this panel affect the primary network connection forming your PuTTY
1370session, but also any extra connections made as a result of SSH port
1371forwarding (see \k{using-port-forwarding}).
1372
1373\S{config-proxy-type} Setting the proxy type
1374
1375The \q{Proxy type} radio buttons allow you to configure what type of
1376proxy you want PuTTY to use for its network connections. The default
1377setting is \q{None}; in this mode no proxy is used for any
1378connection.
1379
1380\b Selecting \q{HTTP} allows you to proxy your connections through a
1381web server supporting the HTTP \cw{CONNECT} command, as documented
1382in \W{http://www.ietf.org/rfc/rfc2817.txt}{RFC 2817}.
1383
1384\b Selecting \q{SOCKS} allows you to proxy your connections through
1385a SOCKS server.
1386
1387\b Many firewalls implement a less formal type of proxy in which a
1388user can make a Telnet connection directly to the firewall machine
1389and enter a command such as \c{connect myhost.com 22} to connect
1390through to an external host. Selecting \q{Telnet} allows you to tell
1391PuTTY to use this type of proxy.
1392
1393Note [FIXME] that SOCKS is not yet supported, although it should be
1394by the time we make our next release.
1395
1396\S{config-proxy-exclude} Excluding parts of the network from proxying
1397
1398Typically you will only need to use a proxy to connect to non-local
1399parts of your network; for example, your proxy might be required for
1400connections outside your company's internal network. In the
1401\q{Exclude Hosts/IPs} box you can enter ranges of IP addresses, or
1402ranges of DNS names, for which PuTTY will avoid using the proxy and
1403make a direct connection instead.
1404
1405The \q{Exclude Hosts/IPs} box may contain more than one exclusion
1406range, separated by commas. Each range can be an IP address or a DNS
1407name, with a \c{*} character allowing wildcards. For example:
1408
1409\c *.example.com
1410
1411This excludes any host with a name ending in \c{.example.com} from
1412proxying.
1413
1414\c 192.168.88.*
1415
1416This excludes any host with an IP address starting with 192.168.88
1417from proxying.
1418
1419\c 192.168.88.*,*.example.com
1420
1421This excludes both of the above ranges at once.
1422
1423\S{config-proxy-auth} Username and password
1424
1425If your proxy requires authentication, you can enter a username and
1426a password in the \q{Username} and \q{Password} boxes.
1427
1428Currently these boxes have no effect ( [FIXME] presumably they're
1429for SOCKS only).
1430
1431\S{config-proxy-command} Specifying the Telnet proxy command
1432
1433If you are using the Telnet proxy type, the usual command required
1434by the firewall's Telnet server is \c{connect}, followed by a host
1435name and a port number. If your proxy needs a different command,
1436you can enter an alternative here.
1437
1438In this string, you can use \c{\\n} to represent a new-line, \c{\\r}
1439to represent a carriage return, \c{\\t} to represent a tab
1440character, and \c{\\x} followed by two hex digits to represent any
1441other character. \c{\\\\} is used to encode the \c{\\} character
1442itself.
1443
1444Also, the special strings \c{%host} and \c{%port} will be replaced
1445by the host name and port number you want to connect to. To get a
1446literal \c{%} sign, enter \c{%%}.
1447
1448\S{config-proxy-socksver} Selecting the version of the SOCKS protocol
1449
1450SOCKS servers exist in two versions: version 5
1451(\W{http://www.ietf.org/rfc/rfc1928.txt}{RFC 1928}) and the earlier
1452version 4. The \q{SOCKS Version} radio buttons allow you to select
1453which one to use, if you have selected the SOCKS proxy type.
1454
55ba634a 1455\H{config-telnet} The Telnet panel
1456
1630bb61 1457The Telnet panel allows you to configure options that only apply to
1458Telnet sessions.
1459
55ba634a 1460\S{config-termspeed} \q{Terminal-speed string}
1461
70133c0e 1462\cfg{winhelp-topic}{telnet.termspeed}
1463
add788fc 1464Telnet allows the client to send a text string that describes the
1465terminal speed. PuTTY lets you configure this, in case you find the
1466server is reacting badly to the default value. (I'm not aware of any
1467servers that do have a problem with it.)
1468
55ba634a 1469\S{config-environ} Setting environment variables on the server
1470
70133c0e 1471\cfg{winhelp-topic}{telnet.environ}
1472
add788fc 1473The Telnet protocol also provides a means for the client to pass
1474environment variables to the server. Many Telnet servers have
1475stopped supporting this feature due to security flaws, but PuTTY
1476still supports it for the benefit of any servers which have found
1477other ways around the security problems than just disabling the
1478whole mechanism.
1479
1480To add an environment variable to the list transmitted down the
1481connection, you enter the variable name in the \q{Variable} box,
1482enter its value in the \q{Value} box, and press the \q{Add} button.
1483To remove one from the list, select it in the list box and press
1484\q{Remove}.
1485
55ba634a 1486\S{config-oldenviron} \q{Handling of OLD_ENVIRON ambiguity}
1487
70133c0e 1488\cfg{winhelp-topic}{telnet.oldenviron}
1489
add788fc 1490The original Telnet mechanism for passing environment variables was
1491badly specified. At the time the standard (RFC 1408) was written,
1492BSD telnet implementations were already supporting the feature, and
1493the intention of the standard was to describe the behaviour the BSD
1494implementations were already using.
1495
1496Sadly there was a typing error in the standard when it was issued,
1497and two vital function codes were specified the wrong way round. BSD
1498implementations did not change, and the standard was not corrected.
1499Therefore, it's possible you might find either BSD or RFC-compliant
1500implementations out there. This switch allows you to choose which
1501one PuTTY claims to be.
1502
1503The problem was solved by issuing a second standard, defining a new
1504Telnet mechanism called \cw{NEW_ENVIRON}, which behaved exactly like
1505the original \cw{OLD_ENVIRON} but was not encumbered by existing
1506implementations. Most Telnet servers now support this, and it's
1507unambiguous. This feature should only be needed if you have trouble
1508passing environment variables to quite an old server.
1509
1510\S{config-ptelnet} Passive and active Telnet negotiation modes
1511
70133c0e 1512\cfg{winhelp-topic}{telnet.passive}
1513
add788fc 1514In a Telnet connection, there are two types of data passed between
1515the client and the server: actual text, and \e{negotiations} about
1516which Telnet extra features to use.
1517
1518PuTTY can use two different strategies for negotiation:
1519
1520\b In \e{active} mode, PuTTY starts to send negotiations as soon as
1521the connection is opened.
1522
1523\b In \e{passive} mode, PuTTY will wait to negotiate until it sees a
1524negotiation from the server.
1525
1526The obvious disadvantage of passive mode is that if the server is
1527also operating in a passive mode, then negotiation will never begin
1528at all. For this reason PuTTY defaults to active mode.
1529
1530However, sometimes passive mode is required in order to successfully
1531get through certain types of firewall and Telnet proxy server. If
1532you have confusing trouble with a firewall, you could try enabling
1533passive mode to see if it helps.
1534
1535\S{config-telnetkey} \q{Keyboard sends telnet Backspace and Interrupt}
1536
70133c0e 1537\cfg{winhelp-topic}{telnet.specialkeys}
1538
add788fc 1539If this box is checked, the Backspace key on the keyboard will send
1540the Telnet special backspace code, and Control-C will send the
1541Telnet special interrupt code. You probably shouldn't enable this
1542unless you know what you're doing.
1543
e81b578d 1544\S{config-telnetnl} \q{Return key sends telnet New Line instead of ^M}
eee63b77 1545
1546\cfg{winhelp-topic}{telnet.newline}
1547
1548Unlike most other remote login protocols, the Telnet protocol has a
e81b578d 1549special \q{new line} code that is not the same as the usual line
eee63b77 1550endings of Control-M or Control-J. By default, PuTTY sends the
1551Telnet New Line code when you press Return, instead of sending
1552Control-M as it does in most other protocols.
1553
1554Most Unix-style Telnet servers don't mind whether they receive
1555Telnet New Line or Control-M; some servers do expect New Line, and
1556some servers prefer to see ^M. If you are seeing surprising
1557behaviour when you press Return in a Telnet session, you might try
1558turning this option off to see if it helps.
1559
add788fc 1560\H{config-rlogin} The Rlogin panel
1561
1562The Rlogin panel allows you to configure options that only apply to
1563Rlogin sessions.
1564
1565\S{config-rlogin-termspeed} \q{Terminal-speed string}
1566
70133c0e 1567\cfg{winhelp-topic}{rlogin.termspeed}
1568
add788fc 1569Like Telnet, Rlogin allows the client to send a text string that
1570describes the terminal speed. PuTTY lets you configure this, in case
1571you find the server is reacting badly to the default value. (I'm not
1572aware of any servers that do have a problem with it.)
1573
1574\S{config-rlogin-localuser} \q{Local username}
1575
70133c0e 1576\cfg{winhelp-topic}{rlogin.localuser}
1577
add788fc 1578Rlogin allows an automated (password-free) form of login by means of
1579a file called \c{.rhosts} on the server. You put a line in your
1580\c{.rhosts} file saying something like \c{jbloggs@pc1.example.com},
1581and then when you make an Rlogin connection the client transmits the
1582username of the user running the Rlogin client. The server checks
1583the username and hostname against \c{.rhosts}, and if they match it
1584does not ask for a password.
1585
1586This only works because Unix systems contain a safeguard to stop a
1587user from pretending to be another user in an Rlogin connection.
1588Rlogin connections have to come from port numbers below 1024, and
1589Unix systems prohibit this to unprivileged processes; so when the
1590server sees a connection from a low-numbered port, it assumes the
1591client end of the connection is held by a privileged (and therefore
1592trusted) process, so it believes the claim of who the user is.
1593
1594Windows does not have this restriction: \e{any} user can initiate an
1595outgoing connection from a low-numbered port. Hence, the Rlogin
1596\c{.rhosts} mechanism is completely useless for securely
1597distinguishing several different users on a Windows machine. If you
1598have a \c{.rhosts} entry pointing at a Windows PC, you should assume
1599that \e{anyone} using that PC can spoof your username in an Rlogin
1600connection and access your account on the server.
1601
1602The \q{Local username} control allows you to specify what user name
1603PuTTY should claim you have, in case it doesn't match your Windows
1604user name (or in case you didn't bother to set up a Windows user
1605name).
1606
55ba634a 1607\H{config-ssh} The SSH panel
1608
1630bb61 1609The SSH panel allows you to configure options that only apply to
1610SSH sessions.
1611
55ba634a 1612\S{config-command} Executing a specific command on the server
1613
70133c0e 1614\cfg{winhelp-topic}{ssh.command}
1615
add788fc 1616In SSH, you don't have to run a general shell session on the server.
1617Instead, you can choose to run a single specific command (such as a
1618mail user agent, for example). If you want to do this, enter the
1619command in the \q{Remote command} box.
1620
1621\S{config-ssh-pty} \q{Don't allocate a pseudo-terminal}
1622
70133c0e 1623\cfg{winhelp-topic}{ssh.nopty}
1624
add788fc 1625When connecting to a Unix system, most interactive shell sessions
1626are run in a \e{pseudo-terminal}, which allows the Unix system to
1627pretend it's talking to a real physical terminal device but allows
1628the SSH server to catch all the data coming from that fake device
1629and send it back to the client.
1630
1631Occasionally you might find you have a need to run a session \e{not}
1632in a pseudo-terminal. In PuTTY, this is generally only useful for
1633very specialist purposes; although in Plink (see \k{plink}) it is
1634the usual way of working.
1635
1636\S{config-ssh-comp} \q{Enable compression}
1637
70133c0e 1638\cfg{winhelp-topic}{ssh.compress}
1639
add788fc 1640This enables data compression in the SSH connection: data sent by
1641the server is compressed before sending, and decompressed at the
1642client end. Likewise, data sent by PuTTY to the server is compressed
1643first and the server decompresses it at the other end. This can help
1644make the most of a low-bandwidth connection.
1645
1646\S{config-ssh-prot} \q{Preferred SSH protocol version}
1647
70133c0e 1648\cfg{winhelp-topic}{ssh.protocol}
1649
add788fc 1650This allows you to select whether you would like to use SSH protocol
1651version 1 or version 2. \#{FIXME: say something about this elsewhere?}
1652
1653PuTTY will attempt to use protocol 1 if the server you connect to
1654does not offer protocol 2, and vice versa.
1655
05a24552 1656If you select \q{2 only} here, PuTTY will only connect if the server
1657you connect to offers SSH protocol version 2.
1658
add788fc 1659\S{config-ssh-macbug} \q{Imitate SSH 2 MAC bug}
1660
70133c0e 1661\cfg{winhelp-topic}{ssh.buggymac}
1662
add788fc 1663This option \e{should} now be unnecessary. It existed in order to
1664work around a bug in early versions (2.3.0 and below) of the SSH
1665server software from \cw{ssh.com}. The symptom of this problem would
1666be that PuTTY would die unexpectedly at the beginning of the
1667session, saying \q{Incorrect MAC received on packet}.
1668
1669Current versions of PuTTY attempt to detect these faulty servers and
1670enable the bug compatibility automatically, so you should never need
1671to use this option any more.
1672
1673\S{config-ssh-encryption} Encryption algorithm selection
1674
70133c0e 1675\cfg{winhelp-topic}{ssh.ciphers}
1676
add788fc 1677PuTTY supports a variety of different encryption algorithms, and
1678allows you to choose which one you prefer to use. You can do this by
a5a6cb30 1679dragging the algorithms up and down in the list box (or moving them
1680using the Up and Down buttons) to specify a preference order. When
1681you make an SSH connection, PuTTY will search down the list from the
1682top until it finds an algorithm supported by the server, and then
1683use that.
add788fc 1684
1685If the algorithm PuTTY finds is below the \q{warn below here} line,
1686you will see a warning box when you make the connection:
1687
1688\c The first cipher supported by the server
1689\c is single-DES, which is below the configured
1690\c warning threshold.
1691\c Do you want to continue with this connection?
1692
1693This warns you that the first available encryption is not a very
1694secure one. Typically you would put the \q{warn below here} line
1695between the encryptions you consider secure and the ones you
a5a6cb30 1696consider substandard. By default, PuTTY supplies a preference order
1697intended to reflect a reasonable preference in terms of security and
1698speed.
add788fc 1699
81e8bb1b 1700Single-DES is not supported natively in the SSH 2 draft protocol
1701standards. One or two server implementations do support it, by a
1702non-standard name. PuTTY can use single-DES to interoperate with
1703these servers if you enable the \q{Enable non-standard single-DES in
1704SSH 2} option; by default this is disabled and PuTTY will stick to
1705the standard.
1706
add788fc 1707\H{config-ssh-auth} The Auth panel
1708
1709The Auth panel allows you to configure authentication options for
1710SSH sessions.
1711
1712\S{config-ssh-tis} \q{Attempt TIS or CryptoCard authentication}
1713
70133c0e 1714\cfg{winhelp-topic}{ssh.auth.tis}
1715
add788fc 1716TIS and CryptoCard authentication are simple challenge/response
1717forms of authentication available in SSH protocol version 1 only.
1718You might use them if you were using S/Key one-time passwords, for
1719example, or if you had a physical security token that generated
1720responses to authentication challenges.
1721
1722With this switch enabled, PuTTY will attempt these forms of
1723authentication if the server is willing to try them. You will be
1724presented with a challenge string (which will be different every
1725time) and must supply the correct response in order to log in. If
1726your server supports this, you should talk to your system
1727administrator about precisely what form these challenges and
1728responses take.
1729
babac7bd 1730\S{config-ssh-ki} \q{Attempt keyboard-interactive authentication}
81e8bb1b 1731
70133c0e 1732\cfg{winhelp-topic}{ssh.auth.ki}
1733
81e8bb1b 1734The SSH 2 equivalent of TIS authentication is called
1735\q{keyboard-interactive}. It is a flexible authentication method
1736using an arbitrary sequence of requests and responses; so it is not
1737only useful for challenge/response mechanisms such as S/Key, but it
1738can also be used for (for example) asking the user for a new
1739password when the old one has expired.
1740
1741PuTTY leaves this option enabled by default, but supplies a switch
1742to turn it off in case you should have trouble with it.
1743
add788fc 1744\S{config-ssh-agentfwd} \q{Allow agent forwarding}
1745
70133c0e 1746\cfg{winhelp-topic}{ssh.auth.agentfwd}
1747
add788fc 1748This option allows the SSH server to open forwarded connections back
1749to your local copy of Pageant. If you are not running Pageant, this
1750option will do nothing.
1751
1752See \k{pageant} for general information on Pageant, and
1753\k{pageant-forward} for information on agent forwarding. Note that
1754there is a security risk involved with enabling this option; see
1755\k{pageant-security} for details.
1756
babac7bd 1757\S{config-ssh-changeuser} \q{Allow attempted changes of username in SSH2}
5bb641e1 1758
1759\cfg{winhelp-topic}{ssh.auth.changeuser}
1760
1761In the SSH 1 protocol, it is impossible to change username after
1762failing to authenticate. So if you mis-type your username at the
1763PuTTY \q{login as:} prompt, you will not be able to change it except
1764by restarting PuTTY.
1765
1766The SSH 2 protocol \e{does} allow changes of username, in principle,
1767but does not make it mandatory for SSH 2 servers to accept them. In
1768particular, OpenSSH does not accept a change of username; once you
1769have sent one username, it will reject attempts to try to
1770authenticate as another user. (Depending on the version of OpenSSH,
1771it may quietly return failure for all login attempts, or it may send
1772an error message.)
1773
1774For this reason, PuTTY will by default not prompt you for your
1775username more than once, in case the server complains. If you know
1776your server can cope with it, you can enable the \q{Allow attempted
1777changes of username} option to modify PuTTY's behaviour.
1778
add788fc 1779\S{config-ssh-privkey} \q{Private key file for authentication}
1780
70133c0e 1781\cfg{winhelp-topic}{ssh.auth.privkey}
1782
add788fc 1783This box is where you enter the name of your private key file if you
1784are using public key authentication. See \k{pubkey} for information
1785about public key authentication in SSH.
1786
1787\H{config-ssh-tunnels} The Tunnels panel
1788
1789The Tunnels panel allows you to configure tunnelling of other
1790connection types through an SSH connection.
1791
1792\S{config-ssh-x11} X11 forwarding
1793
70133c0e 1794\cfg{winhelp-topic}{ssh.tunnels.x11}
1795
add788fc 1796If your server lets you run X Window System applications, X11
1797forwarding allows you to securely give those applications access to
1798a local X display on your PC.
1799
add788fc 1800To enable X11 forwarding, check the \q{Enable X11 forwarding} box.
1801If your X display is not the primary display on your local machine
1802(which it almost certainly will be unless you have deliberately
1803arranged otherwise), you need to enter its location in the \q{X
1804display location} box.
1805
2f8d6d43 1806See \k{using-x-forwarding} for more information about X11
1807forwarding.
add788fc 1808
1809\S{config-ssh-portfwd} Port forwarding
1810
70133c0e 1811\cfg{winhelp-topic}{ssh.tunnels.portfwd}
1812
add788fc 1813Port forwarding allows you to tunnel other types of network
2f8d6d43 1814connection down an SSH session. See \k{using-port-forwarding} for a
1815general discussion of port forwarding and how it works.
1816
1817The port forwarding section in the Tunnels panel shows a list of all
1818the port forwardings that PuTTY will try to set up when it connects
1819to the server. By default no port forwardings are set up, so this
1820list is empty.
1821
1822To add a port forwarding:
1823
1824\b Set one of the \q{Local} or \q{Remote} radio buttons, depending
1825on whether you want to forward a local port to a remote destination
1826(\q{Local}) or forward a remote port to a local destination
1827(\q{Remote}).
1828
1829\b Enter a source port number into the \q{Source port} box. For
1830local forwardings, PuTTY will listen on this port of your PC. For
1831remote forwardings, your SSH server will listen on this port of the
1832remote machine. Note that most servers will not allow you to listen
1833on port numbers less than 1024.
1834
1835\b Enter a hostname and port number separated by a colon, in the
1836\q{Destination} box. Connections received on the source port will be
1837directed to this destination. For example, to connect to a POP-3
1838server, you might enter \c{popserver.example.com:110}.
1839
1840\b Click the \q{Add} button. Your forwarding details should appear
1841in the list box.
1842
1843To remove a port forwarding, simply select its details in the list
1844box, and click the \q{Remove} button.
37c6fce1 1845
beefa433 1846\S{config-ssh-portfwd-localhost} Controlling the visibility of
1847forwarded ports
1848
1849\cfg{winhelp-topic}{ssh.tunnels.portfwd.localhost}
1850
1851The source port for a forwarded connection usually does not accept
1852connections from any machine except the SSH client or server machine
1853itself (for local and remote forwardings respectively). There are
1854controls in the Tunnels panel to change this:
1855
1856\b The \q{Local ports accept connections from other hosts} option
1857allows you to set up local-to-remote port forwardings in such a way
1858that machines other than your client PC can connect to the forwarded
1859port.
1860
1861\b The \q{Remote ports do the same} option does the same thing for
1862remote-to-local port forwardings (so that machines other than the
1863SSH server machine can connect to the forwarded port.) Note that
1864this feature is only available in the SSH 2 protocol, and not all
1865SSH 2 servers support it (OpenSSH 3.0 does not, for example).
1866
37c6fce1 1867\H{config-file} Storing configuration in a file
1868
1869PuTTY does not currently support storing its configuration in a file
1870instead of the Registry. However, you can work around this with a
1871couple of batch files.
1872
1873You will need a file called (say) \c{PUTTY.BAT} which imports the
1874contents of a file into the Registry, then runs PuTTY, exports the
1875contents of the Registry back into the file, and deletes the
1876Registry entries. This can all be done using the Regedit command
1877line options, so it's all automatic. Here is what you need in
1878\c{PUTTY.BAT}:
1879
1880\c @ECHO OFF
1881\c regedit /s putty.reg
1882\c regedit /s puttyrnd.reg
1883\c start /w putty.exe
1884\c regedit /e puttynew.reg HKEY_CURRENT_USER\Software\SimonTatham\PuTTY
1885\c copy puttynew.reg putty.reg
1886\c del puttynew.reg
1887\c regedit /s puttydel.reg
1888
1889This batch file needs two auxiliary files: \c{PUTTYRND.REG} which
1890sets up an initial safe location for the \c{PUTTY.RND} random seed
1891file, and \c{PUTTYDEL.REG} which destroys everything in the Registry
1892once it's been successfully saved back to the file.
1893
1894Here is \c{PUTTYDEL.REG}:
1895
1896\c REGEDIT4
1897\c
1898\c [-HKEY_CURRENT_USER\Software\SimonTatham\PuTTY]
1899
1900Here is an example \c{PUTTYRND.REG} file:
1901
1902\c REGEDIT4
1903\c
1904\c [HKEY_CURRENT_USER\Software\SimonTatham\PuTTY]
1905\c "RandSeedFile"="a:\putty.rnd"
1906
1907You should replace \c{a:\\putty.rnd} with the location where you
1908want to store your random number data. If the aim is to carry around
1909PuTTY and its settings on one floppy, you probably want to store it
1910on the floppy.