Now we use Subversion, it seems excessive to have an individual $Id$
[u/mdw/putty] / doc / errors.but
CommitLineData
39a938f7 1\define{versioniderrors} \versionid $Id$
91f80e36 2
3\C{errors} Common error messages
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
18This error message occurs when PuTTY connects to a new SSH server.
19Every server identifies itself by means of a host key; once PuTTY
20knows the host key for a server, it will be able to detect if a
21malicious attacker redirects your connection to another machine.
22
23If you see this message, it means that PuTTY has not seen this host
24key before, and has no way of knowing whether it is correct or not.
25You should attempt to verify the host key by other means, such as
26asking the machine's administrator.
27
28If 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
30recently upgraded to SSH protocol version 2. SSH protocols 1 and 2
31use separate host keys, so when you first use SSH 2 with a server
32you have only used SSH 1 with before, you will see this message
33again. You should verify the correctness of the key as before.
34
35See \k{gs-hostkey} for more information on host keys.
36
37\H{errors-hostkey-wrong} \q{WARNING - POTENTIAL SECURITY BREACH!}
38
39This message, followed by \q{The server's host key does not match
40the one PuTTY has cached in the registry}, means that PuTTY has
41connected to the SSH server before, knows what its host key
42\e{should} be, but has found a different one.
43
44This may mean that a malicious attacker has replaced your server
45with a different one, or has redirected your network connection to
46their own machine. On the other hand, it may simply mean that the
47administrator of your server has accidentally changed the key while
48upgrading the SSH software; this \e{shouldn't} happen but it is
49unfortunately possible.
50
51You should contact your server's administrator and see whether they
52expect the host key to have changed. If so, verify the new host key
53in the same way as you would if it was new.
54
55See \k{gs-hostkey} for more information on host keys.
56
57\H{errors-portfwd-space} \q{Out of space for port forwardings}
58
59PuTTY has a fixed-size buffer which it uses to store the details of
60all port forwardings you have set up in an SSH session. If you
61specify too many port forwardings on the PuTTY or Plink command line
62and this buffer becomes full, you will see this error message.
63
64We need to fix this (fixed-size buffers are almost always a mistake)
65but we haven't got round to it. If you actually have trouble with
66this, let us know and we'll move it up our priority list.
67
68\H{errors-cipher-warning} \q{The first cipher supported by the server is
69... below the configured warning threshold}
70
71This occurs when the SSH server does not offer any ciphers which you
72have configured PuTTY to consider strong enough.
73
74See \k{config-ssh-encryption} for more information on this message.
75
d47748c7 76\H{errors-toomanyauth} \q{Server sent disconnect message type 2
77(SSH_DISCONNECT_PROTOCOL_ERROR): "Too many authentication failures for root"}
78
79This message is produced by an OpenSSH (or Sun SSH) server if it
80receives more failed authentication attempts than it is willing to
81tolerate. This can easily happen if you are using Pageant and have a
82large number of keys loaded into it. This can be worked around on the
83server by disabling public-key authentication or (for Sun SSH only) by
84increasing \c{MaxAuthTries} in \c{sshd_config}. Neither of these is a
85really satisfactory solution, and we hope to provide a better one in a
86future version of PuTTY.
87
91f80e36 88\H{errors-memory} \q{Out of memory}
89
90This occurs when PuTTY tries to allocate more memory than the system
91can give it. This \e{may} happen for genuine reasons: if the
92computer really has run out of memory, or if you have configured an
93extremely large number of lines of scrollback in your terminal.
94PuTTY is not able to recover from running out of memory; it will
95terminate immediately after giving this error.
96
97However, this error can also occur when memory is not running out at
98all, because PuTTY receives data in the wrong format. In SSH 2 and
99also in SFTP, the server sends the length of each message before the
100message itself; so PuTTY will receive the length, try to allocate
101space for the message, and then receive the rest of the message. If
102the length PuTTY receives is garbage, it will try to allocate a
103ridiculous amount of memory, and will terminate with an \q{Out of
104memory} error.
105
106This can happen in SSH 2, if PuTTY and the server have not enabled
107encryption in the same way (see \k{faq-outofmem} in the FAQ). Some
c7f9fab3 108versions of OpenSSH have a known problem with this: see
91f80e36 109\k{faq-openssh-bad-openssl}.
110
111This can also happen in PSCP or PSFTP, if your login scripts on the
112server generate output: the client program will be expecting an SFTP
113message starting with a length, and if it receives some text from
114your login scripts instead it will try to interpret them as a
115message length. See \k{faq-outofmem2} for details of this.
116
117\H{errors-internal} \q{Internal error}, \q{Internal fault},
118\q{Assertion failed}
119
120Any error beginning with the word \q{Internal} should \e{never}
121occur. If it does, there is a bug in PuTTY by definition; please see
122\k{feedback} and report it to us.
123
124Similarly, any error message starting with \q{Assertion failed} is a
125bug in PuTTY. Please report it to us, and include the exact text
126from the error message box.
127
d63af698 128\H{errors-key-wrong-format} \q{Unable to use this private key file},
129\q{Couldn't load private key}, \q{Key is of wrong type}
130
131Various forms of this error are printed in the PuTTY window, or
132written to the PuTTY Event Log (see \k{using-eventlog}) when trying
133public-key authentication, or given by Pageant when trying to load a
134private key.
135
136If you see one of these messages, it often indicates that you've tried
137to load a key of an inappropriate type into PuTTY, Plink, PSCP, PSFTP,
138or Pageant.
139
140You may have specified a key that's inappropriate for the connection
141you're making. The SSH-1 and SSH-2 protocols require different private
142key formats, and a SSH-1 key can't be used for a SSH-2 connection (or
143vice versa).
144
145Alternatively, you may have tried to load an SSH-2 key in a \q{foreign}
146format (OpenSSH or \cw{ssh.com}) directly into one of the PuTTY tools,
147in which case you need to import it into PuTTY's native format
148(\c{*.PPK}) using PuTTYgen - see \k{puttygen-conversions}.
149
91f80e36 150\H{errors-refused} \q{Server refused our public key} or \q{Key
151refused}
152
153Various forms of this error are printed in the PuTTY window, or
154written to the PuTTY Event Log (see \k{using-eventlog}) when trying
155public-key authentication.
156
157If you see one of these messages, it means that PuTTY has sent a
158public key to the server and offered to authenticate with it, and
159the server has refused to accept authentication. This usually means
160that the server is not configured to accept this key to authenticate
161this user.
162
163This is almost certainly not a problem with PuTTY. If you see this
164type of message, the first thing you should do is check your
165\e{server} configuration carefully. Also, read the PuTTY Event Log;
166the server may have sent diagnostic messages explaining exactly what
167problem it had with your setup.
168
b42fb837 169\H{errors-access-denied} \q{Access denied}, \q{Authentication refused}
170
171Various forms of this error are printed in the PuTTY window, or
172written to the PuTTY Event Log (see \k{using-eventlog}) during
173authentication.
174
175If you see one of these messages, it means that the server has refused
176all the forms of authentication PuTTY has tried and it has no further
177ideas.
178
179It may be worth checking the Event Log for diagnostic messages from
180the server giving more detail.
181
182This error can be caused by buggy SSH-1 servers that fail to cope with
183the various strategies we use for camouflaging passwords in transit.
184Upgrade your server, or use the workarounds described in
185\k{config-ssh-bug-ignore1} and possibly \k{config-ssh-bug-plainpw1}.
186
91f80e36 187\H{errors-crc} \q{Incorrect CRC received on packet} or \q{Incorrect
188MAC received on packet}
189
190This error occurs when PuTTY decrypts an SSH packet and its checksum
191is not correct. This probably means something has gone wrong in the
192encryption or decryption process. It's difficult to tell from this
193error message whether the problem is in the client or in the server.
194
195A known server problem which can cause this error is described in
196\k{faq-openssh-bad-openssl} in the FAQ.
197
198\H{errors-garbled} \q{Incoming packet was garbled on decryption}
199
200This error occurs when PuTTY decrypts an SSH packet and the
201decrypted data makes no sense. This probably means something has
202gone wrong in the encryption or decryption process. It's difficult
d54e6946 203to tell from this error message whether the problem is in the client,
204in the server, or in between.
91f80e36 205
07ffa166 206If you get this error, one thing you could try would be to fiddle
207with the setting of \q{Miscomputes SSH2 encryption keys} on the Bugs
208panel (see \k{config-ssh-bug-derivekey2}).
209
210Another known server problem which can cause this error is described
211in \k{faq-openssh-bad-openssl} in the FAQ.
91f80e36 212
9bb8630a 213\H{errors-x11-proxy} \q{PuTTY X11 proxy: \e{various errors}}
91f80e36 214
9bb8630a 215This family of errors are reported when PuTTY is doing X forwarding.
216They are sent back to the X application running on the SSH server,
217which will usually report the error to the user.
91f80e36 218
219When PuTTY enables X forwarding (see \k{using-x-forwarding}) it
220creates a virtual X display running on the SSH server. This display
221requires authentication to connect to it (this is how PuTTY prevents
222other users on your server machine from connecting through the PuTTY
223proxy to your real X display). PuTTY also sends the server the
224details it needs to enable clients to connect, and the server should
225put this mechanism in place automatically, so your X applications
226should just work.
227
9bb8630a 228A common reason why people see one of these messages is because they
229used SSH to log in as one user (let's say \q{fred}), and then used
230the Unix \c{su} command to become another user (typically \q{root}).
231The original user, \q{fred}, has access to the X authentication data
91f80e36 232provided by the SSH server, and can run X applications which are
233forwarded over the SSH connection. However, the second user
234(\q{root}) does not automatically have the authentication data
235passed on to it, so attempting to run an X application as that user
236often fails with this error.
237
238If this happens, \e{it is not a problem with PuTTY}. You need to
239arrange for your X authentication data to be passed from the user
240you logged in as to the user you used \c{su} to become. How you do
241this depends on your particular system; in fact many modern versions
242of \c{su} do it automatically.
243
244\H{errors-connaborted} \q{Network error: Software caused connection
245abort}
246
bb0e31ff 247This error occurs when the Windows network code decides that your
248network connection is dead. For example, it will happen if you pull
249the network cable out of the back of an Ethernet-connected computer,
250or if Windows has any other similar reason to believe the entire
251network has become unreachable.
91f80e36 252
bb0e31ff 253We are not aware of any reason why this error might occur that would
254represent a bug in PuTTY. The problem is between you, your Windows
255system, your network and the remote system.
91f80e36 256
257\H{errors-connreset} \q{Network error: Connection reset by peer}
258
259This error occurs when the machines at each end of a network
260connection lose track of the state of the connection between them.
261For example, you might see it if your SSH server crashes, and
262manages to reboot fully before you next attempt to send data to it.
263
264However, the most common reason to see this message is if you are
265connecting through a firewall or a NAT router which has timed the
266connection out. See \k{faq-idleout} in the FAQ for more details. You
267may be able to improve the situation by using keepalives; see
268\k{config-keepalive} for details on this.
269
270\H{errors-connrefused} \q{Network error: Connection refused}
271
272This error means that the network connection PuTTY tried to make to
273your server was rejected by the server. Usually this happens because
274the server does not provide the service which PuTTY is trying to
275access.
276
277Check that you are connecting with the correct protocol (SSH, Telnet
278or Rlogin), and check that the port number is correct. If that
279fails, consult the administrator of your server.
bb0e31ff 280
b302c7ab 281\H{errors-conntimedout} \q{Network error: Connection timed out}
bb0e31ff 282
283This error means that the network connection PuTTY tried to make to
284your server received no response at all from the server. Usually
285this happens because the server machine is completely isolated from
286the network, or because it is turned off.
287
288Check that you have correctly entered the host name or IP address of
289your server machine. If that fails, consult the administrator of
290your server.