Introduce a third setting for the 'bold as colour' mode, which lets
[u/mdw/putty] / doc / errors.but
CommitLineData
39a938f7 1\define{versioniderrors} \versionid $Id$
91f80e36 2
421406a4 3\C{errors} Common \i{error messages}
91f80e36 4
5This chapter lists a number of common error messages which PuTTY and
6its associated tools can produce, and explains what they mean in
7more detail.
8
9We do not attempt to list \e{all} error messages here: there are
10many which should never occur, and some which should be
11self-explanatory. If you get an error message which is not listed in
12this chapter and which you don't understand, report it to us as a
13bug (see \k{feedback}) and we will add documentation for it.
14
15\H{errors-hostkey-absent} \q{The server's host key is not cached in
16the registry}
17
5321c0c6 18\cfg{winhelp-topic}{errors.hostkey.absent}
19
91f80e36 20This error message occurs when PuTTY connects to a new SSH server.
21Every server identifies itself by means of a host key; once PuTTY
22knows the host key for a server, it will be able to detect if a
23malicious attacker redirects your connection to another machine.
24
25If you see this message, it means that PuTTY has not seen this host
26key before, and has no way of knowing whether it is correct or not.
27You should attempt to verify the host key by other means, such as
28asking the machine's administrator.
29
30If you see this message and you know that your installation of PuTTY
31\e{has} connected to the same server before, it may have been
32recently upgraded to SSH protocol version 2. SSH protocols 1 and 2
421406a4 33use separate host keys, so when you first use \i{SSH-2} with a server
2e85c969 34you have only used SSH-1 with before, you will see this message
91f80e36 35again. You should verify the correctness of the key as before.
36
37See \k{gs-hostkey} for more information on host keys.
38
39\H{errors-hostkey-wrong} \q{WARNING - POTENTIAL SECURITY BREACH!}
40
5321c0c6 41\cfg{winhelp-topic}{errors.hostkey.changed}
42
91f80e36 43This message, followed by \q{The server's host key does not match
44the one PuTTY has cached in the registry}, means that PuTTY has
45connected to the SSH server before, knows what its host key
46\e{should} be, but has found a different one.
47
48This may mean that a malicious attacker has replaced your server
49with a different one, or has redirected your network connection to
50their own machine. On the other hand, it may simply mean that the
51administrator of your server has accidentally changed the key while
52upgrading the SSH software; this \e{shouldn't} happen but it is
53unfortunately possible.
54
55You should contact your server's administrator and see whether they
56expect the host key to have changed. If so, verify the new host key
57in the same way as you would if it was new.
58
59See \k{gs-hostkey} for more information on host keys.
60
61\H{errors-portfwd-space} \q{Out of space for port forwardings}
62
63PuTTY has a fixed-size buffer which it uses to store the details of
421406a4 64all \i{port forwardings} you have set up in an SSH session. If you
91f80e36 65specify too many port forwardings on the PuTTY or Plink command line
66and this buffer becomes full, you will see this error message.
67
68We need to fix this (fixed-size buffers are almost always a mistake)
69but we haven't got round to it. If you actually have trouble with
70this, let us know and we'll move it up our priority list.
71
68d5ba46 72If you're running into this limit, you may want to consider using
73dynamic port forwarding instead; see \k{using-port-forwarding}.
74
91f80e36 75\H{errors-cipher-warning} \q{The first cipher supported by the server is
76... below the configured warning threshold}
77
78This occurs when the SSH server does not offer any ciphers which you
83372d79 79have configured PuTTY to consider strong enough. By default, PuTTY
a2add208 80puts up this warning only for \ii{single-DES} and \i{Arcfour} encryption.
91f80e36 81
82See \k{config-ssh-encryption} for more information on this message.
83
d47748c7 84\H{errors-toomanyauth} \q{Server sent disconnect message type 2
94cd7c3a 85(protocol error): "Too many authentication failures for root"}
d47748c7 86
421406a4 87This message is produced by an \i{OpenSSH} (or \i{Sun SSH}) server if it
d47748c7 88receives more failed authentication attempts than it is willing to
94cd7c3a 89tolerate.
90
91This can easily happen if you are using Pageant and have a
92large number of keys loaded into it, since these servers count each
93offer of a public key as an authentication attempt. This can be worked
94around by specifying the key that's required for the authentication in
53b567c2 95the PuTTY configuration (see \k{config-ssh-privkey}); PuTTY will ignore
94cd7c3a 96any other keys Pageant may have, but will ask Pageant to do the
97authentication, so that you don't have to type your passphrase.
98
99On the server, this can be worked around by disabling public-key
100authentication or (for Sun SSH only) by increasing \c{MaxAuthTries} in
101\c{sshd_config}.
d47748c7 102
421406a4 103\H{errors-memory} \q{\ii{Out of memory}}
91f80e36 104
105This occurs when PuTTY tries to allocate more memory than the system
106can give it. This \e{may} happen for genuine reasons: if the
107computer really has run out of memory, or if you have configured an
108extremely large number of lines of scrollback in your terminal.
109PuTTY is not able to recover from running out of memory; it will
110terminate immediately after giving this error.
111
112However, this error can also occur when memory is not running out at
2e85c969 113all, because PuTTY receives data in the wrong format. In SSH-2 and
91f80e36 114also in SFTP, the server sends the length of each message before the
115message itself; so PuTTY will receive the length, try to allocate
116space for the message, and then receive the rest of the message. If
117the length PuTTY receives is garbage, it will try to allocate a
118ridiculous amount of memory, and will terminate with an \q{Out of
119memory} error.
120
2e85c969 121This can happen in SSH-2, if PuTTY and the server have not enabled
91f80e36 122encryption in the same way (see \k{faq-outofmem} in the FAQ). Some
421406a4 123versions of \i{OpenSSH} have a known problem with this: see
91f80e36 124\k{faq-openssh-bad-openssl}.
125
421406a4 126This can also happen in PSCP or PSFTP, if your \i{login scripts} on the
91f80e36 127server generate output: the client program will be expecting an SFTP
128message starting with a length, and if it receives some text from
129your login scripts instead it will try to interpret them as a
130message length. See \k{faq-outofmem2} for details of this.
131
421406a4 132\H{errors-internal} \q{\ii{Internal error}}, \q{\ii{Internal fault}},
133\q{\ii{Assertion failed}}
91f80e36 134
135Any error beginning with the word \q{Internal} should \e{never}
136occur. If it does, there is a bug in PuTTY by definition; please see
137\k{feedback} and report it to us.
138
139Similarly, any error message starting with \q{Assertion failed} is a
140bug in PuTTY. Please report it to us, and include the exact text
141from the error message box.
142
28339579 143\H{errors-cant-load-key} \q{Unable to use this private key file},
d63af698 144\q{Couldn't load private key}, \q{Key is of wrong type}
145
28339579 146\cfg{winhelp-topic}{errors.cantloadkey}
147
d63af698 148Various forms of this error are printed in the PuTTY window, or
149written to the PuTTY Event Log (see \k{using-eventlog}) when trying
150public-key authentication, or given by Pageant when trying to load a
151private key.
152
153If you see one of these messages, it often indicates that you've tried
154to load a key of an inappropriate type into PuTTY, Plink, PSCP, PSFTP,
155or Pageant.
156
157You may have specified a key that's inappropriate for the connection
158you're making. The SSH-1 and SSH-2 protocols require different private
159key formats, and a SSH-1 key can't be used for a SSH-2 connection (or
160vice versa).
161
162Alternatively, you may have tried to load an SSH-2 key in a \q{foreign}
163format (OpenSSH or \cw{ssh.com}) directly into one of the PuTTY tools,
164in which case you need to import it into PuTTY's native format
165(\c{*.PPK}) using PuTTYgen - see \k{puttygen-conversions}.
166
91f80e36 167\H{errors-refused} \q{Server refused our public key} or \q{Key
168refused}
169
170Various forms of this error are printed in the PuTTY window, or
171written to the PuTTY Event Log (see \k{using-eventlog}) when trying
172public-key authentication.
173
174If you see one of these messages, it means that PuTTY has sent a
175public key to the server and offered to authenticate with it, and
176the server has refused to accept authentication. This usually means
177that the server is not configured to accept this key to authenticate
178this user.
179
180This is almost certainly not a problem with PuTTY. If you see this
181type of message, the first thing you should do is check your
d273e616 182\e{server} configuration carefully. Common errors include having
183the wrong permissions or ownership set on the public key or the
184user's home directory on the server. Also, read the PuTTY Event Log;
91f80e36 185the server may have sent diagnostic messages explaining exactly what
186problem it had with your setup.
187
f02bae97 188\K{pubkey-gettingready} has some hints on server-side public key
189setup.
190
b42fb837 191\H{errors-access-denied} \q{Access denied}, \q{Authentication refused}
192
193Various forms of this error are printed in the PuTTY window, or
194written to the PuTTY Event Log (see \k{using-eventlog}) during
195authentication.
196
197If you see one of these messages, it means that the server has refused
198all the forms of authentication PuTTY has tried and it has no further
199ideas.
200
201It may be worth checking the Event Log for diagnostic messages from
202the server giving more detail.
203
204This error can be caused by buggy SSH-1 servers that fail to cope with
205the various strategies we use for camouflaging passwords in transit.
206Upgrade your server, or use the workarounds described in
207\k{config-ssh-bug-ignore1} and possibly \k{config-ssh-bug-plainpw1}.
208
9c099835 209\H{errors-no-auth} \q{No supported authentication methods available}
210
211This error indicates that PuTTY has run out of ways to authenticate
212you to an SSH server. This may be because PuTTY has TIS or
213keyboard-interactive authentication disabled, in which case
214\k{config-ssh-tis} and \k{config-ssh-ki}.
215
421406a4 216\H{errors-crc} \q{Incorrect \i{CRC} received on packet} or \q{Incorrect
947ba5b6 217\i{MAC} received on packet}
91f80e36 218
219This error occurs when PuTTY decrypts an SSH packet and its checksum
220is not correct. This probably means something has gone wrong in the
221encryption or decryption process. It's difficult to tell from this
d7e526bf 222error message whether the problem is in the client, in the server,
223or in between.
91f80e36 224
6215289b 225In particular, if the network is corrupting data at the TCP level, it
226may only be obvious with cryptographic protocols such as SSH, which
227explicitly check the integrity of the transferred data and complain
228loudly if the checks fail. Corruption of protocols without integrity
229protection (such as HTTP) will manifest in more subtle failures (such
230as misdisplayed text or images in a web browser) which may not be
231noticed.
232
91f80e36 233A known server problem which can cause this error is described in
234\k{faq-openssh-bad-openssl} in the FAQ.
235
236\H{errors-garbled} \q{Incoming packet was garbled on decryption}
237
238This error occurs when PuTTY decrypts an SSH packet and the
239decrypted data makes no sense. This probably means something has
240gone wrong in the encryption or decryption process. It's difficult
d54e6946 241to tell from this error message whether the problem is in the client,
242in the server, or in between.
91f80e36 243
1cb8218f 244If you get this error, one thing you could try would be to fiddle with
245the setting of \q{Miscomputes SSH-2 encryption keys} (see
246\k{config-ssh-bug-derivekey2}) or \q{Ignores SSH-2 maximum packet
247size} (see \k{config-ssh-bug-maxpkt2}) on the Bugs panel .
07ffa166 248
249Another known server problem which can cause this error is described
250in \k{faq-openssh-bad-openssl} in the FAQ.
91f80e36 251
9bb8630a 252\H{errors-x11-proxy} \q{PuTTY X11 proxy: \e{various errors}}
91f80e36 253
9bb8630a 254This family of errors are reported when PuTTY is doing X forwarding.
255They are sent back to the X application running on the SSH server,
256which will usually report the error to the user.
91f80e36 257
258When PuTTY enables X forwarding (see \k{using-x-forwarding}) it
259creates a virtual X display running on the SSH server. This display
260requires authentication to connect to it (this is how PuTTY prevents
261other users on your server machine from connecting through the PuTTY
262proxy to your real X display). PuTTY also sends the server the
263details it needs to enable clients to connect, and the server should
264put this mechanism in place automatically, so your X applications
265should just work.
266
9bb8630a 267A common reason why people see one of these messages is because they
268used SSH to log in as one user (let's say \q{fred}), and then used
269the Unix \c{su} command to become another user (typically \q{root}).
270The original user, \q{fred}, has access to the X authentication data
91f80e36 271provided by the SSH server, and can run X applications which are
272forwarded over the SSH connection. However, the second user
273(\q{root}) does not automatically have the authentication data
274passed on to it, so attempting to run an X application as that user
275often fails with this error.
276
277If this happens, \e{it is not a problem with PuTTY}. You need to
278arrange for your X authentication data to be passed from the user
279you logged in as to the user you used \c{su} to become. How you do
280this depends on your particular system; in fact many modern versions
281of \c{su} do it automatically.
282
283\H{errors-connaborted} \q{Network error: Software caused connection
284abort}
285
19866609 286This is a generic error produced by the Windows network code when it
b0dd1394 287kills an established connection for some reason. For example, it might
19866609 288happen if you pull the network cable out of the back of an
289Ethernet-connected computer, or if Windows has any other similar
290reason to believe the entire network has become unreachable.
91f80e36 291
aace4aeb 292Windows also generates this error if it has given up on the machine
293at the other end of the connection ever responding to it. If the
294network between your client and server goes down and your client
295then tries to send some data, Windows will make several attempts to
296send the data and will then give up and kill the connection. In
297particular, this can occur even if you didn't type anything, if you
298are using SSH-2 and PuTTY attempts a key re-exchange. (See
299\k{config-ssh-kex-rekey} for more about key re-exchange.)
300
301(It can also occur if you are using keepalives in your connection.
302Other people have reported that keepalives \e{fix} this error for
303them. See \k{config-keepalive} for a discussion of the pros and cons
304of keepalives.)
305
bb0e31ff 306We are not aware of any reason why this error might occur that would
307represent a bug in PuTTY. The problem is between you, your Windows
308system, your network and the remote system.
91f80e36 309
310\H{errors-connreset} \q{Network error: Connection reset by peer}
311
312This error occurs when the machines at each end of a network
313connection lose track of the state of the connection between them.
314For example, you might see it if your SSH server crashes, and
315manages to reboot fully before you next attempt to send data to it.
316
317However, the most common reason to see this message is if you are
421406a4 318connecting through a \i{firewall} or a \i{NAT router} which has timed the
91f80e36 319connection out. See \k{faq-idleout} in the FAQ for more details. You
320may be able to improve the situation by using keepalives; see
321\k{config-keepalive} for details on this.
322
83372d79 323Note that Windows can produce this error in some circumstances without
324seeing a connection reset from the server, for instance if the
325connection to the network is lost.
326
91f80e36 327\H{errors-connrefused} \q{Network error: Connection refused}
328
329This error means that the network connection PuTTY tried to make to
330your server was rejected by the server. Usually this happens because
331the server does not provide the service which PuTTY is trying to
332access.
333
334Check that you are connecting with the correct protocol (SSH, Telnet
335or Rlogin), and check that the port number is correct. If that
336fails, consult the administrator of your server.
bb0e31ff 337
b302c7ab 338\H{errors-conntimedout} \q{Network error: Connection timed out}
bb0e31ff 339
340This error means that the network connection PuTTY tried to make to
341your server received no response at all from the server. Usually
342this happens because the server machine is completely isolated from
343the network, or because it is turned off.
344
345Check that you have correctly entered the host name or IP address of
346your server machine. If that fails, consult the administrator of
347your server.
aace4aeb 348
421406a4 349\i{Unix} also generates this error when it tries to send data down a
aace4aeb 350connection and contact with the server has been completely lost
351during a connection. (There is a delay of minutes before Unix gives
352up on receiving a reply from the server.) This can occur if you type
353things into PuTTY while the network is down, but it can also occur
354if PuTTY decides of its own accord to send data: due to a repeat key
355exchange in SSH-2 (see \k{config-ssh-kex-rekey}) or due to
356keepalives (\k{config-keepalive}).