Remove a spurious 'q'.
[u/mdw/putty] / doc / errors.but
CommitLineData
c7f9fab3 1\versionid $Id: errors.but,v 1.2 2002/11/25 19:02:23 ben Exp $
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
76\H{errors-memory} \q{Out of memory}
77
78This occurs when PuTTY tries to allocate more memory than the system
79can give it. This \e{may} happen for genuine reasons: if the
80computer really has run out of memory, or if you have configured an
81extremely large number of lines of scrollback in your terminal.
82PuTTY is not able to recover from running out of memory; it will
83terminate immediately after giving this error.
84
85However, this error can also occur when memory is not running out at
86all, because PuTTY receives data in the wrong format. In SSH 2 and
87also in SFTP, the server sends the length of each message before the
88message itself; so PuTTY will receive the length, try to allocate
89space for the message, and then receive the rest of the message. If
90the length PuTTY receives is garbage, it will try to allocate a
91ridiculous amount of memory, and will terminate with an \q{Out of
92memory} error.
93
94This can happen in SSH 2, if PuTTY and the server have not enabled
95encryption in the same way (see \k{faq-outofmem} in the FAQ). Some
c7f9fab3 96versions of OpenSSH have a known problem with this: see
91f80e36 97\k{faq-openssh-bad-openssl}.
98
99This can also happen in PSCP or PSFTP, if your login scripts on the
100server generate output: the client program will be expecting an SFTP
101message starting with a length, and if it receives some text from
102your login scripts instead it will try to interpret them as a
103message length. See \k{faq-outofmem2} for details of this.
104
105\H{errors-internal} \q{Internal error}, \q{Internal fault},
106\q{Assertion failed}
107
108Any error beginning with the word \q{Internal} should \e{never}
109occur. If it does, there is a bug in PuTTY by definition; please see
110\k{feedback} and report it to us.
111
112Similarly, any error message starting with \q{Assertion failed} is a
113bug in PuTTY. Please report it to us, and include the exact text
114from the error message box.
115
116\H{errors-refused} \q{Server refused our public key} or \q{Key
117refused}
118
119Various forms of this error are printed in the PuTTY window, or
120written to the PuTTY Event Log (see \k{using-eventlog}) when trying
121public-key authentication.
122
123If you see one of these messages, it means that PuTTY has sent a
124public key to the server and offered to authenticate with it, and
125the server has refused to accept authentication. This usually means
126that the server is not configured to accept this key to authenticate
127this user.
128
129This is almost certainly not a problem with PuTTY. If you see this
130type of message, the first thing you should do is check your
131\e{server} configuration carefully. Also, read the PuTTY Event Log;
132the server may have sent diagnostic messages explaining exactly what
133problem it had with your setup.
134
135\H{errors-crc} \q{Incorrect CRC received on packet} or \q{Incorrect
136MAC received on packet}
137
138This error occurs when PuTTY decrypts an SSH packet and its checksum
139is not correct. This probably means something has gone wrong in the
140encryption or decryption process. It's difficult to tell from this
141error message whether the problem is in the client or in the server.
142
143A known server problem which can cause this error is described in
144\k{faq-openssh-bad-openssl} in the FAQ.
145
146\H{errors-garbled} \q{Incoming packet was garbled on decryption}
147
148This error occurs when PuTTY decrypts an SSH packet and the
149decrypted data makes no sense. This probably means something has
150gone wrong in the encryption or decryption process. It's difficult
151to tell from this error message whether the problem is in the client
152or in the server.
153
154A known server problem which can cause this error is described in
155\k{faq-openssh-bad-openssl} in the FAQ.
156
157\H{errors-x11-proxy} \q{Authentication failed at PuTTY X11 proxy}
158
159This error is reported when PuTTY is doing X forwarding. It is sent
160back to the X application running on the SSH server, which will
161usually report the error to the user.
162
163When PuTTY enables X forwarding (see \k{using-x-forwarding}) it
164creates a virtual X display running on the SSH server. This display
165requires authentication to connect to it (this is how PuTTY prevents
166other users on your server machine from connecting through the PuTTY
167proxy to your real X display). PuTTY also sends the server the
168details it needs to enable clients to connect, and the server should
169put this mechanism in place automatically, so your X applications
170should just work.
171
172A common reason why people see this message is because they used SSH
173to log in as one user (let's say \q{fred}), and then used the Unix
174\c{su} command to become another user (typically \q{root}). The
175original user, \q{fred}, has access to the X authentication data
176provided by the SSH server, and can run X applications which are
177forwarded over the SSH connection. However, the second user
178(\q{root}) does not automatically have the authentication data
179passed on to it, so attempting to run an X application as that user
180often fails with this error.
181
182If this happens, \e{it is not a problem with PuTTY}. You need to
183arrange for your X authentication data to be passed from the user
184you logged in as to the user you used \c{su} to become. How you do
185this depends on your particular system; in fact many modern versions
186of \c{su} do it automatically.
187
188\H{errors-connaborted} \q{Network error: Software caused connection
189abort}
190
191In modern versions of PuTTY, you should not see this error.
192
193Windows's documentation about this error condition is not very good,
194but as far as we can tell, this error occurs when PuTTY is listening
195on a port, another program makes a connection to that port, but
196closes the connection so fast that PuTTY has no time to answer it.
197
198PuTTY only ever listens on a port when it is doing local-to-remote
199port forwarding (see \k{using-port-forwarding}); and if an incoming
200connection on that port receives this error, PuTTY should simply
201close the connection and continue without error.
202
203If you see this error in PuTTY 0.53 or above, we would welcome a
204report of the circumstances.
205
206\H{errors-connreset} \q{Network error: Connection reset by peer}
207
208This error occurs when the machines at each end of a network
209connection lose track of the state of the connection between them.
210For example, you might see it if your SSH server crashes, and
211manages to reboot fully before you next attempt to send data to it.
212
213However, the most common reason to see this message is if you are
214connecting through a firewall or a NAT router which has timed the
215connection out. See \k{faq-idleout} in the FAQ for more details. You
216may be able to improve the situation by using keepalives; see
217\k{config-keepalive} for details on this.
218
219\H{errors-connrefused} \q{Network error: Connection refused}
220
221This error means that the network connection PuTTY tried to make to
222your server was rejected by the server. Usually this happens because
223the server does not provide the service which PuTTY is trying to
224access.
225
226Check that you are connecting with the correct protocol (SSH, Telnet
227or Rlogin), and check that the port number is correct. If that
228fails, consult the administrator of your server.