📄 faq.but
字号:
\versionid $Id: faq.but,v 1.1.1.4.2.2 2004/12/29 11:32:19 pekangas Exp $\A{faq} PuTTY FAQThis FAQ is published on the PuTTY web site, and also provided as anappendix in the manual.\H{faq-intro} Introduction\S{faq-what}{Question} What is PuTTY?PuTTY is a client program for the SSH, Telnet and Rlogin networkprotocols.These protocols are all used to run a remote session on a computer,over a network. PuTTY implements the client end of that session: theend at which the session is displayed, rather than the end at whichit runs.In really simple terms: you run PuTTY on a Windows machine, and tellit to connect to (for example) a Unix machine. PuTTY opens a window.Then, anything you type into that window is sent straight to theUnix machine, and everything the Unix machine sends back isdisplayed in the window. So you can work on the Unix machine as ifyou were sitting at its console, while actually sitting somewhereelse.\H{faq-support} Features supported in PuTTYIn general, if you want to know if PuTTY supports a particularfeature, you should look for it on the\W{http://www.chiark.greenend.org.uk/~sgtatham/putty/}{PuTTY web site}.In particular:\b try the\W{http://www.chiark.greenend.org.uk/~sgtatham/putty/changes.html}{changespage}, and see if you can find the feature on there. If a feature islisted there, it's been implemented. If it's listed as a change made\e{since} the latest version, it should be available in thedevelopment snapshots, in which case testing will be very welcome.\b try the\W{http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/}{Wishlistpage}, and see if you can find the feature there. If it's on there,and not in the \q{Recently fixed} section, it probably \e{hasn't} beenimplemented.\S{faq-ssh2}{Question} Does PuTTY support SSH v2?Yes. SSH v2 support has been available in PuTTY since version 0.50.Public key authentication (both RSA and DSA) in SSH v2 is new inversion 0.52.\S{faq-ssh2-keyfmt}{Question} Does PuTTY support reading OpenSSH or\cw{ssh.com} SSHv2 private key files?PuTTY doesn't support this natively, but as of 0.53PuTTYgen can convert both OpenSSH and \cw{ssh.com} private keyfiles into PuTTY's format.\S{faq-ssh1}{Question} Does PuTTY support SSH v1?Yes. SSH 1 support has always been available in PuTTY.\S{faq-localecho}{Question} Does PuTTY support local echo?Yes. Version 0.52 has proper support for local echo.In version 0.51 and before, local echo could not be separated fromlocal line editing (where you type a line of text locally, and it isnot sent to the server until you press Return, so you have thechance to edit it and correct mistakes \e{before} the server seesit). New in version 0.52, local echo and local line editing areseparate options, and by default PuTTY will try to determineautomatically whether to enable them or not, based on which protocolyou have selected and also based on hints from the server. If youhave a problem with PuTTY's default choice, you can force eachoption to be enabled or disabled as you choose. The controls are inthe Terminal panel, in the section marked \q{Line disciplineoptions}.\S{faq-savedsettings}{Question} Does PuTTY support storing settings,so I don't have to change them every time?Yes, all of PuTTY's settings can be saved in named session profiles.See \k{config-saving} in the documentation for how to do this.\S{faq-disksettings}{Question} Does PuTTY support storing itssettings in a disk file?Not at present, although \k{config-file} in the documentation givesa method of achieving the same effect.\S{faq-fullscreen}{Question} Does PuTTY support full-screen mode,like a DOS box?Yes; this is a new feature in version 0.52.\S{faq-password-remember}{Question} Does PuTTY have the ability toremember my password so I don't have to type it every time?No, it doesn't.Remembering your password is a bad plan for obvious securityreasons: anyone who gains access to your machine while you're awayfrom your desk can find out the remembered password, and use it,abuse it or change it.In addition, it's not even \e{possible} for PuTTY to automaticallysend your password in a Telnet session, because Telnet doesn't givethe client software any indication of which part of the loginprocess is the password prompt. PuTTY would have to guess, bylooking for words like \q{password} in the session data; and if yourlogin program is written in something other than English, this won'twork.In SSH, remembering your password would be possible in theory, butthere doesn't seem to be much point since SSH supports public keyauthentication, which is more flexible and more secure. See\k{pubkey} in the documentation for a full discussion of public keyauthentication.\S{faq-hostkeys}{Question} Is there an option to turn off theannoying host key prompts?No, there isn't. And there won't be. Even if you write it yourselfand send us the patch, we won't accept it.Those annoying host key prompts are the \e{whole point} of SSH.Without them, all the cryptographic technology SSH uses to secureyour session is doing nothing more than making an attacker's jobslightly harder; instead of sitting between you and the server witha packet sniffer, the attacker must actually subvert a router andstart modifying the packets going back and forth. But that's not allthat much harder than just sniffing; and without host key checking,it will go completely undetected by client or server.Host key checking is your guarantee that the encryption you put onyour data at the client end is the \e{same} encryption taken off thedata at the server end; it's your guarantee that it hasn't beenremoved and replaced somewhere on the way. Host key checking makesthe attacker's job \e{astronomically} hard, compared to packetsniffing, and even compared to subverting a router. Instead ofapplying a little intelligence and keeping an eye on Bugtraq, theattacker must now perform a brute-force attack against at least onemilitary-strength cipher. That insignificant host key prompt reallydoes make \e{that} much difference.If you're having a specific problem with host key checking - perhapsyou want an automated batch job to make use of PSCP or Plink, andthe interactive host key prompt is hanging the batch process - thenthe right way to fix it is to add the correct host key to theRegistry in advance. That way, you retain the \e{important} featureof host key checking: the right key will be accepted and the wrongones will not. Adding an option to turn host key checking offcompletely is the wrong solution and we will not do it.If you have host keys available in the common \c{known_hosts} format,we have a script called \W{http://cvs.tartarus.org/putty/contrib/kh2reg.py}\c{kh2reg.py}to convert them to a Windows .REG file, which can be installed ahead oftime by double-clicking or using \c{REGEDIT}.\S{faq-server}{Question} Will you write an SSH server for the PuTTYsuite, to go with the client?No. The only reason we might want to would be if we could easilyre-use existing code and significantly cut down the effort. We don'tbelieve this is the case; there just isn't enough common groundbetween an SSH client and server to make it worthwhile.If someone else wants to use bits of PuTTY in the process of writinga Windows SSH server, they'd be perfectly welcome to of course, butI really can't see it being a lot less effort for us to do that thanit would be for us to write a server from the ground up. We don'thave time, and we don't have motivation. The code is available ifanyone else wants to try it.\S{faq-pscp-ascii}{Question} Can PSCP or PSFTP transfer files inASCII mode?Unfortunately not.Until recently, this was a limitation of the file transfer protocols:the SCP and SFTP protocols had no notion of transferring a file inanything other than binary mode. (This is still true of SCP.)The current draft protocol spec of SFTP proposes a means ofimplementing ASCII transfer. At some point PSCP/PSFTP may implementthis proposal.\H{faq-ports} Ports to other operating systemsThe eventual goal is for PuTTY to be a multi-platform program, ableto run on at least Windows, Mac OS and Unix.Porting will become easier once PuTTY has a generalised portinglayer, drawing a clear line between platform-dependent andplatform-independent code. The general intention was for thisporting layer to evolve naturally as part of the process of doingthe first port; a Unix port has now been released and the planseems to be working so far.\S{faq-ports-general}{Question} What ports of PuTTY exist?Currently, release versions of PuTTY tools only run on full Win32systems and Unix. \q{Win32} includes Windows 95, 98, and ME, and itincludes Windows NT, Windows 2000 and Windows XP.In the development code, a partial port to the Mac OS (see\k{faq-mac-port}) is under way.Currently PuTTY does \e{not} run on Windows CE (see \k{faq-wince}),and it does not quite run on the Win32s environment under Windows3.1 (see \k{faq-win31}).We do not have release-quality ports for any other systems at thepresent time. If anyone told you we had an EPOC port, or an iPaq port,or any other port of PuTTY, they were mistaken. We don't.There are some third-party ports to various platforms, mentionedon the Links page of our website.\S{faq-unix}{Question} Is there a port to Unix?As of 0.54, there are Unix ports of most of the traditional PuTTYtools, and also one entirely new application.If you look at the source release, you should find a \c{unix}subdirectory containing \c{Makefile.gtk}, which should build you Unixports of Plink, PuTTY itself, PuTTYgen, PSCP, PSFTP, and also\c{pterm} - an \cw{xterm}-type program which supports the sameterminal emulation as PuTTY. We do not yet have a Unix port ofPageant.If you don't have Gtk, you should still be able to build thecommand-line tools.Note that Unix PuTTY has mostly only been tested on Linux so far;portability problems such as BSD-style ptys or different header filerequirements are expected.\S{faq-unix-why}{Question} What's the point of the Unix port? Unixhas OpenSSH.All sorts of little things. \c{pterm} is directly useful to anyonewho prefers PuTTY's terminal emulation to \c{xterm}'s, which atleast some people do. Unix Plink has apparently found a niche amongpeople who find the complexity of OpenSSL makes OpenSSH hard toinstall (and who don't mind Plink not having as many features). Someusers want to generate a large number of SSH keys on Unix and thencopy them all into PuTTY, and the Unix PuTTYgen should allow them toautomate that conversion process.There were development advantages as well; porting PuTTY to Unix wasa valuable path-finding effort for other future ports, and alsoallowed us to use the excellent Linux tool\W{http://valgrind.kde.org/}{Valgrind} to help with debugging, whichhas already improved PuTTY's stability on \e{all} platforms.However, if you're a Unix user and you can see no reason to switchfrom OpenSSH to PuTTY/Plink, then you're probably right. We don'texpect our Unix port to be the right thing for everybody.\S{faq-wince}{Question} Will there be a port to Windows CE or PocketPC?It's currently being worked on, but it's only in its early stages yet,and certainly isn't yet useful. PuTTY on portable devices wouldclearly be a useful thing, so in the long term I hope it can bebrought up to release quality.There's also a third-party port at\W{http://pocketputty.duxy.net/}\c{http://pocketputty.duxy.net/}.\S{faq-win31}{Question} Is there a port to Windows 3.1?PuTTY is a 32-bit application from the ground up, so it won't run onWindows 3.1 as a native 16-bit program; and it would be \e{very}hard to port it to do so, because of Windows 3.1's vile memoryallocation mechanisms.However, it is possible in theory to compile the existing PuTTYsource in such a way that it will run under Win32s (an extension toWindows 3.1 to let you run 32-bit programs). In order to do thisyou'll need the right kind of C compiler - modern versions of Visual
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -