⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 faq.but

📁 大名鼎鼎的远程登录软件putty的Symbian版源码
💻 BUT
📖 第 1 页 / 共 4 页
字号:
\S{faq-outofmem}{Question} After trying to establish an SSH 2connection, PuTTY says \q{Out of memory} and dies.If this happens just while the connection is starting up, this oftenindicates that for some reason the client and server have failed toestablish a session encryption key. Somehow, they have performedcalculations that should have given each of them the same key, buthave ended up with different keys; so data encrypted by one anddecrypted by the other looks like random garbage.This causes an \q{out of memory} error because the first encrypteddata PuTTY expects to see is the length of an SSH message. Normallythis will be something well under 100 bytes. If the decryption hasfailed, PuTTY will see a completely random length in the region oftwo \e{gigabytes}, and will try to allocate enough memory to storethis non-existent message. This will immediately lead to it thinkingit doesn't have enough memory, and panicking.If this happens to you, it is quite likely to still be a PuTTY bugand you should report it (although it might be a bug in your SSHserver instead); but it doesn't necessarily mean you've actually runout of memory.\S{faq-outofmem2}{Question} When attempting a file transfer, eitherPSCP or PSFTP says \q{Out of memory} and dies.This is almost always caused by your login scripts on the servergenerating output. PSCP or PSFTP will receive that output when theywere expecting to see the start of a file transfer protocol, andthey will attempt to interpret the output as file-transfer protocol.This will usually lead to an \q{out of memory} error for much thesame reasons as given in \k{faq-outofmem}.This is a setup problem in your account on your server, \e{not} aPSCP/PSFTP bug. Your login scripts should \e{never} generate outputduring non-interactive sessions; secure file transfer is not theonly form of remote access that will break if they do.On Unix, a simple fix is to ensure that all the parts of your loginscript that might generate output are in \c{.profile} (if you use aBourne shell derivative) or \c{.login} (if you use a C shell).Putting them in more general files such as \c{.bashrc} or \c{.cshrc}is liable to lead to problems.\S{faq-psftp-slow}{Question} PSFTP transfers files much slower than PSCP.The throughput of PSFTP 0.54 should be much better than 0.53b andprior; we've added code to the SFTP backend to queue several blocksof data rather than waiting for an acknowledgement for each. (TheSCP backend did not suffer from this performance issue because SCPis a much simpler protocol.)\S{faq-bce}{Question} When I run full-colour applications, I seeareas of black space where colour ought to be.You almost certainly need to enable the \q{Use background colour toerase screen} setting in the Terminal panel. Note that if you dothis in mid-session, in versions before 0.54, it may not take effectuntil you reset the terminal (see \k{faq-resetterm}).\S{faq-resetterm}{Question} When I change some terminal settings,nothing happens.Some of the terminal options (notably Auto Wrap andbackground-colour screen erase) actually represent the \e{default}setting, rather than the currently active setting. The server cansend sequences that modify these options in mid-session, but whenthe terminal is reset (by server action, or by you choosing \q{ResetTerminal} from the System menu) the defaults are restored.In versions 0.53b and prior, if you change one of these options inthe middle of a session, you will find that the change does notimmediately take effect. It will only take effect once you resetthe terminal.In version 0.54, the behaviour has changed - changes to thesesettings take effect immediately.\S{faq-idleout}{Question} My PuTTY sessions unexpectedly close afterthey are idle for a while.Some types of firewall, and almost any router doing Network AddressTranslation (NAT, also known as IP masquerading), will forget abouta connection through them if the connection does nothing for toolong. This will cause the connection to be rudely cut off whencontact is resumed.You can try to combat this by telling PuTTY to send \e{keepalives}:packets of data which have no effect on the actual session, butwhich reassure the router or firewall that the network connection isstill active and worth remembering about.Keepalives don't solve everything, unfortunately; although theycause greater robustness against this sort of router, they can alsocause a \e{loss} of robustness against network dropouts. See\k{config-keepalive} in the documentation for more discussion ofthis.\S{faq-timeout}{Question} PuTTY's network connections time out tooquickly when network connectivity is temporarily lost.This is a Windows problem, not a PuTTY problem. The timeout valuecan't be set on per application or per session basis. To increasethe TCP timeout globally, you need to tinker with the Registry.On Windows 95, 98 or ME, the registry key you need to create orchange is\c HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\\c   MSTCP\MaxDataRetries(it must be of type DWORD in Win95, or String in Win98/ME).(See MS Knowledge Base article\W{http://support.microsoft.com/default.aspx?scid=kb;en-us;158474}{158474}for more information.)On Windows NT or 2000, the registry key is\c HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\\c   Parameters\TcpMaxDataRetransmissionsand it must be of type DWORD.(See MS Knowledge Base article\W{http://support.microsoft.com/default.aspx?scid=kb;en-us;120642}{120642}for more information.)Set the key's value to something like 10. This will cause Windows totry harder to keep connections alive instead of abandoning them.\S{faq-puttyputty}{Question} When I \cw{cat} a binary file, I get`PuTTYPuTTYPuTTY' on my command line.Don't do that, then.This is designed behaviour; when PuTTY receives the characterControl-E from the remote server, it interprets it as a request toidentify itself, and so it sends back the string \q{\cw{PuTTY}} asif that string had been entered at the keyboard. Control-E shouldonly be sent by programs that are prepared to deal with theresponse. Writing a binary file to your terminal is likely to outputmany Control-E characters, and cause this behaviour. Don't do it.It's a bad plan.To mitigate the effects, you could configure the answerback stringto be empty (see \k{config-answerback}); but writing binary files toyour terminal is likely to cause various other unpleasant behaviour,so this is only a small remedy.\S{faq-wintitle}{Question} When I \cw{cat} a binary file, my windowtitle changes to a nonsense string.Don't do that, then.It is designed behaviour that PuTTY should have the ability toadjust the window title on instructions from the server. Normallythe control sequence that does this should only be sentdeliberately, by programs that know what they are doing and intendto put meaningful text in the window title. Writing a binary file toyour terminal runs the risk of sending the same control sequence byaccident, and cause unexpected changes in the window title. Don't doit.\S{faq-password-fails}{Question} My keyboard stops working oncePuTTY displays the password prompt.No, it doesn't. PuTTY just doesn't display the password you type, sothat someone looking at your screen can't see what it is.Unlike the Windows login prompts, PuTTY doesn't display the passwordas a row of asterisks either. This is so that someone looking atyour screen can't even tell how \e{long} your password is, whichmight be valuable information.\S{faq-keyboard}{Question} One or more function keys don't do what Iexpected in a server-side application.If you've already tried all the relevant options in the PuTTYKeyboard panel, you may need to mail the PuTTY maintainers and ask.It is \e{not} usually helpful just to tell us which application,which server operating system, and which key isn't working; in orderto replicate the problem we would need to have a copy of everyoperating system, and every application, that anyone has evercomplained about.PuTTY responds to function key presses by sending a sequence ofcontrol characters to the server. If a function key isn't doing whatyou expect, it's likely that the character sequence your applicationis expecting to receive is not the same as the one PuTTY is sending.Therefore what we really need to know is \e{what} sequence theapplication is expecting.The simplest way to investigate this is to find some other terminalenvironment, in which that function key \e{does} work; and theninvestigate what sequence the function key is sending in thatsituation. One reasonably easy way to do this on a Unix system is totype the command \c{cat}, and then press the function key. This islikely to produce output of the form \c{^[[11~}. You can also dothis in PuTTY, to find out what sequence the function key isproducing in that. Then you can mail the PuTTY maintainers and tellus \q{I wanted the F1 key to send \c{^[[11~}, but instead it'ssending \c{^[OP}, can this be done?}, or something similar.You should still read the\W{http://www.chiark.greenend.org.uk/~sgtatham/putty/feedback.html}{Feedbackpage} on the PuTTY website (also provided as \k{feedback} in themanual), and follow the guidelines contained in that.\S{faq-openssh-bad-openssl}{Question} Since my SSH server was upgradedto OpenSSH 3.1p1/3.4p1, I can no longer connect with PuTTY.There is a known problem when OpenSSH has been built against anincorrect version of OpenSSL; the quick workaround is to configurePuTTY to use SSH protocol 2 and the Blowfish cipher.For more details and OpenSSH patches, see\W{http://bugzilla.mindrot.org/show_bug.cgi?id=138}{bug 138} in theOpenSSH BTS.This is not a PuTTY-specific problem; if you try to connect withanother client you'll likely have similar problems. (Although PuTTY'sdefault cipher differs from many other clients.)\e{OpenSSH 3.1p1:} configurations known to be broken (and symptoms):\b SSH 2 with AES cipher (PuTTY says "Assertion failed! Expression:(len & 15) == 0" in sshaes.c, or "Out of memory", or crashes)\b SSH 2 with 3DES (PuTTY says "Incorrect MAC received on packet")\b SSH 1 with Blowfish (PuTTY says "Incorrect CRC received onpacket")\b SSH 1 with 3DES\e{OpenSSH 3.4p1:} as of 3.4p1, only the problem with SSH 1 andBlowfish remains. Rebuild your server, apply the patch linked to frombug 138 above, or use another cipher (e.g., 3DES) instead.\e{Other versions:} we occasionally get reports of the same symptomand workarounds with older versions of OpenSSH, although it's notclear the underlying cause is the same.\S{faq-ssh2key-ssh1conn}{Question} Why do I see "Couldn't load privatekey from ..."? Why can PuTTYgen load my key but not PuTTY?It's likely that you've generated an SSH protocol 2 key with PuTTYgen,but you're trying to use it in an SSH 1 connection. SSH1 and SSH2 keyshave different formats, and (at least in 0.52) PuTTY's reporting of akey in the wrong format isn't optimal.To connect using SSH 2 to a server that supports both versions, youneed to change the configuration from the default (see \k{faq-ssh2}).\S{faq-rh8-utf8}{Question} When I'm connected to a Red Hat Linux 8.0system, some characters don't display properly.A common complaint is that hyphens in man pages show up as a-acute.With release 8.0, Red Hat appear to have made UTF-8 the defaultcharacter set. There appears to be no way for terminal emulators suchas PuTTY to know this (as far as we know, the appropriate escapesequence to switch into UTF-8 mode isn't sent).A fix is to configure sessions to RH8 systems to use UTF-8translation - see \k{config-charset} in the documentation. (Note thatif you use \q{Change Settings}, changes may not take place immediately- see \k{faq-resetterm}.)If you really want to change the character set used by the server, theright place is \c{/etc/sysconfig/i18n}, but this shouldn't benecessary.\S{faq-screen}{Question} Since I upgraded to PuTTY 0.54, thescrollback has stopped working when I run \c{screen}.PuTTY's terminal emulator has always had the policy that when the\q{alternate screen} is in use, nothing is added to the scrollback.This is because the usual sorts of programs which use the alternatescreen are things like text editors, which tend to scroll back andforth in the same document a lot; so (a) they would fill up thescrollback with a large amount of unhelpfully disordered text, and(b) they contain their \e{own} method for the user to scroll back tothe bit they were interested in. We have generally found this policyto do the Right Thing in almost all situations.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -