📄 errors.but
字号:
\versionid $Id: errors.but,v 1.1.1.3.6.2 2004/12/29 11:32:19 pekangas Exp $\C{errors} Common error messagesThis chapter lists a number of common error messages which PuTTY andits associated tools can produce, and explains what they mean inmore detail.We do not attempt to list \e{all} error messages here: there aremany which should never occur, and some which should beself-explanatory. If you get an error message which is not listed inthis chapter and which you don't understand, report it to us as abug (see \k{feedback}) and we will add documentation for it.\H{errors-hostkey-absent} \q{The server's host key is not cached inthe registry}This error message occurs when PuTTY connects to a new SSH server.Every server identifies itself by means of a host key; once PuTTYknows the host key for a server, it will be able to detect if amalicious attacker redirects your connection to another machine.If you see this message, it means that PuTTY has not seen this hostkey before, and has no way of knowing whether it is correct or not.You should attempt to verify the host key by other means, such asasking the machine's administrator.If you see this message and you know that your installation of PuTTY\e{has} connected to the same server before, it may have beenrecently upgraded to SSH protocol version 2. SSH protocols 1 and 2use separate host keys, so when you first use SSH 2 with a serveryou have only used SSH 1 with before, you will see this messageagain. You should verify the correctness of the key as before.See \k{gs-hostkey} for more information on host keys.\H{errors-hostkey-wrong} \q{WARNING - POTENTIAL SECURITY BREACH!}This message, followed by \q{The server's host key does not matchthe one PuTTY has cached in the registry}, means that PuTTY hasconnected to the SSH server before, knows what its host key\e{should} be, but has found a different one.This may mean that a malicious attacker has replaced your serverwith a different one, or has redirected your network connection totheir own machine. On the other hand, it may simply mean that theadministrator of your server has accidentally changed the key whileupgrading the SSH software; this \e{shouldn't} happen but it isunfortunately possible.You should contact your server's administrator and see whether theyexpect the host key to have changed. If so, verify the new host keyin the same way as you would if it was new.See \k{gs-hostkey} for more information on host keys.\H{errors-portfwd-space} \q{Out of space for port forwardings}PuTTY has a fixed-size buffer which it uses to store the details ofall port forwardings you have set up in an SSH session. If youspecify too many port forwardings on the PuTTY or Plink command lineand this buffer becomes full, you will see this error message.We need to fix this (fixed-size buffers are almost always a mistake)but we haven't got round to it. If you actually have trouble withthis, let us know and we'll move it up our priority list.\H{errors-cipher-warning} \q{The first cipher supported by the server is... below the configured warning threshold}This occurs when the SSH server does not offer any ciphers which youhave configured PuTTY to consider strong enough.See \k{config-ssh-encryption} for more information on this message.\H{errors-toomanyauth} \q{Server sent disconnect message type 2(SSH_DISCONNECT_PROTOCOL_ERROR): "Too many authentication failures for root"}This message is produced by an OpenSSH (or Sun SSH) server if itreceives more failed authentication attempts than it is willing totolerate. This can easily happen if you are using Pageant and have alarge number of keys loaded into it. This can be worked around on theserver by disabling public-key authentication or (for Sun SSH only) byincreasing \c{MaxAuthTries} in \c{sshd_config}. Neither of these is areally satisfactory solution, and we hope to provide a better one in afuture version of PuTTY.\H{errors-memory} \q{Out of memory}This occurs when PuTTY tries to allocate more memory than the systemcan give it. This \e{may} happen for genuine reasons: if thecomputer really has run out of memory, or if you have configured anextremely large number of lines of scrollback in your terminal.PuTTY is not able to recover from running out of memory; it willterminate immediately after giving this error.However, this error can also occur when memory is not running out atall, because PuTTY receives data in the wrong format. In SSH 2 andalso in SFTP, the server sends the length of each message before themessage itself; so PuTTY will receive the length, try to allocatespace for the message, and then receive the rest of the message. Ifthe length PuTTY receives is garbage, it will try to allocate aridiculous amount of memory, and will terminate with an \q{Out ofmemory} error.This can happen in SSH 2, if PuTTY and the server have not enabledencryption in the same way (see \k{faq-outofmem} in the FAQ). Someversions of OpenSSH have a known problem with this: see\k{faq-openssh-bad-openssl}.This can also happen in PSCP or PSFTP, if your login scripts on theserver generate output: the client program will be expecting an SFTPmessage starting with a length, and if it receives some text fromyour login scripts instead it will try to interpret them as amessage length. See \k{faq-outofmem2} for details of this.\H{errors-internal} \q{Internal error}, \q{Internal fault},\q{Assertion failed}Any error beginning with the word \q{Internal} should \e{never}occur. If it does, there is a bug in PuTTY by definition; please see\k{feedback} and report it to us.Similarly, any error message starting with \q{Assertion failed} is abug in PuTTY. Please report it to us, and include the exact textfrom the error message box.\H{errors-key-wrong-format} \q{Unable to use this private key file},\q{Couldn't load private key}, \q{Key is of wrong type}Various forms of this error are printed in the PuTTY window, orwritten to the PuTTY Event Log (see \k{using-eventlog}) when tryingpublic-key authentication, or given by Pageant when trying to load aprivate key.If you see one of these messages, it often indicates that you've triedto load a key of an inappropriate type into PuTTY, Plink, PSCP, PSFTP,or Pageant.You may have specified a key that's inappropriate for the connectionyou're making. The SSH-1 and SSH-2 protocols require different privatekey formats, and a SSH-1 key can't be used for a SSH-2 connection (orvice versa).Alternatively, you may have tried to load an SSH-2 key in a \q{foreign}format (OpenSSH or \cw{ssh.com}) directly into one of the PuTTY tools,in which case you need to import it into PuTTY's native format(\c{*.PPK}) using PuTTYgen - see \k{puttygen-conversions}.\H{errors-refused} \q{Server refused our public key} or \q{Keyrefused}Various forms of this error are printed in the PuTTY window, orwritten to the PuTTY Event Log (see \k{using-eventlog}) when tryingpublic-key authentication.If you see one of these messages, it means that PuTTY has sent apublic key to the server and offered to authenticate with it, andthe server has refused to accept authentication. This usually meansthat the server is not configured to accept this key to authenticatethis user.This is almost certainly not a problem with PuTTY. If you see thistype of message, the first thing you should do is check your\e{server} configuration carefully. Also, read the PuTTY Event Log;the server may have sent diagnostic messages explaining exactly whatproblem it had with your setup.\H{errors-access-denied} \q{Access denied}, \q{Authentication refused}Various forms of this error are printed in the PuTTY window, orwritten to the PuTTY Event Log (see \k{using-eventlog}) duringauthentication.If you see one of these messages, it means that the server has refused all the forms of authentication PuTTY has tried and it has no furtherideas.It may be worth checking the Event Log for diagnostic messages fromthe server giving more detail.This error can be caused by buggy SSH-1 servers that fail to cope withthe various strategies we use for camouflaging passwords in transit.Upgrade your server, or use the workarounds described in\k{config-ssh-bug-ignore1} and possibly \k{config-ssh-bug-plainpw1}.\H{errors-crc} \q{Incorrect CRC received on packet} or \q{IncorrectMAC received on packet}This error occurs when PuTTY decrypts an SSH packet and its checksumis not correct. This probably means something has gone wrong in theencryption or decryption process. It's difficult to tell from thiserror message whether the problem is in the client or in the server.A known server problem which can cause this error is described in\k{faq-openssh-bad-openssl} in the FAQ.\H{errors-garbled} \q{Incoming packet was garbled on decryption}This error occurs when PuTTY decrypts an SSH packet and thedecrypted data makes no sense. This probably means something hasgone wrong in the encryption or decryption process. It's difficultto tell from this error message whether the problem is in the client,in the server, or in between.If you get this error, one thing you could try would be to fiddlewith the setting of \q{Miscomputes SSH2 encryption keys} on the Bugspanel (see \k{config-ssh-bug-derivekey2}).Another known server problem which can cause this error is describedin \k{faq-openssh-bad-openssl} in the FAQ.\H{errors-x11-proxy} \q{PuTTY X11 proxy: \e{various errors}}This family of errors are reported when PuTTY is doing X forwarding.They are sent back to the X application running on the SSH server,which will usually report the error to the user.When PuTTY enables X forwarding (see \k{using-x-forwarding}) itcreates a virtual X display running on the SSH server. This displayrequires authentication to connect to it (this is how PuTTY preventsother users on your server machine from connecting through the PuTTYproxy to your real X display). PuTTY also sends the server thedetails it needs to enable clients to connect, and the server shouldput this mechanism in place automatically, so your X applicationsshould just work.A common reason why people see one of these messages is because theyused SSH to log in as one user (let's say \q{fred}), and then usedthe Unix \c{su} command to become another user (typically \q{root}).The original user, \q{fred}, has access to the X authentication dataprovided by the SSH server, and can run X applications which areforwarded over the SSH connection. However, the second user(\q{root}) does not automatically have the authentication datapassed on to it, so attempting to run an X application as that useroften fails with this error.If this happens, \e{it is not a problem with PuTTY}. You need toarrange for your X authentication data to be passed from the useryou logged in as to the user you used \c{su} to become. How you dothis depends on your particular system; in fact many modern versionsof \c{su} do it automatically.\H{errors-connaborted} \q{Network error: Software caused connectionabort}This error occurs when the Windows network code decides that yournetwork connection is dead. For example, it will happen if you pullthe network cable out of the back of an Ethernet-connected computer,or if Windows has any other similar reason to believe the entirenetwork has become unreachable.We are not aware of any reason why this error might occur that wouldrepresent a bug in PuTTY. The problem is between you, your Windowssystem, your network and the remote system.\H{errors-connreset} \q{Network error: Connection reset by peer}This error occurs when the machines at each end of a networkconnection lose track of the state of the connection between them.For example, you might see it if your SSH server crashes, andmanages to reboot fully before you next attempt to send data to it.However, the most common reason to see this message is if you areconnecting through a firewall or a NAT router which has timed theconnection out. See \k{faq-idleout} in the FAQ for more details. Youmay be able to improve the situation by using keepalives; see\k{config-keepalive} for details on this.\H{errors-connrefused} \q{Network error: Connection refused}This error means that the network connection PuTTY tried to make toyour server was rejected by the server. Usually this happens becausethe server does not provide the service which PuTTY is trying toaccess.Check that you are connecting with the correct protocol (SSH, Telnetor Rlogin), and check that the port number is correct. If thatfails, consult the administrator of your server.\H{errors-conntimedout} \q{Network error: Connection timed out}This error means that the network connection PuTTY tried to make toyour server received no response at all from the server. Usuallythis happens because the server machine is completely isolated fromthe network, or because it is turned off.Check that you have correctly entered the host name or IP address ofyour server machine. If that fails, consult the administrator ofyour server.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -