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