errors.but 16 KB

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