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

📄 hclinetd.txt

📁 伯克利做的SFTP安全文件传输协议
💻 TXT
字号:
HCLInetd.TXTInstallation instructions for sftpd (with Hummingbird inetd)------------------------------------------------------------These instructions setup sftpd to intercept all normal ftp traffic andsecure the connections made by secure (SafeTP) clients. These instructionsare for people who wish to use the inetd driver program that ships with Hummingbird Exceed. (A free alternative driver program called winetd is now available - see INSTALL.TXT for details).Following all of these instructions will require administrator accesson Windows NT/2000.Once sftpd is installed, you will be able to FTP securely to yourserver using the SafeTP client software.The SafeTP client software can be downloaded for free from:http://safetp.cs.berkeley.edu/1.  Installing the Binaries1.1 Setup Hummingbird ExceedThis configuration of sftpd requires that Hummingbird Exceed 6.xbe installed on the target system. When installing Exceed, be sure toenable the "inetd" installation option, as you will need thismodule active in order to run sftpd. You may also wish to install the"ftpd" option if you don't already have an insecure ftpd daemon. SafeTP server requires that _some_ insecure, "legacy" FTPserver be installed on the same system to act as the "host" FTPd(Because the server, like the client, is just a proxy - it addssecurity to an existing FTP daemon, which handles most of the "real" file work). There are many such FTPd programs available,both freely and commercially on the web (examples include wuFTPD,WarFTPD, Microsoft IIS, WSFTPD, Hummingbird ftpd, etc.)These instructions assume you're using Hummingbird's ftpd as your insecureserver, however we've found it to be somewhat buggy. We recommend that installations with serious FTP needs seek out a more stable alternative to act as the underlying insecure server beneath sftpd.1.2 Unzip sftpd files into a directoryCreate a directory on your harddrive for sftpd and unzip the filesinto it. From here on, we assume this directory is called "C:\sftpd".We recommend that write access to this directory is limited to justadministrators (assuming the drive is an NTFS partition).Note that the drive should be an unmapped physical local drive.  Thisis because the SYSTEM user (which the daemon runs as) will not havedrive mappings available to it.The important sftpd binaries are:  sftpd.exe           the daemon proxy itself  sftpc.exe           a secure command-line client  makekeys.exe        for creating new keys  viewkey.exe         for viewing keys and checksums  hcllib.dll          a library used to interface with Hummingbird inetd  winetlib.dll        a library used to interface with Winetd  libgmp.dll          the GNU MP crypto library1.3  Make a new server keypair.From c:\sftpd, while logged in as administrator, run this command:  c:\sftpd> makekeys 0 1024	This will ask you for a server name to "brand" the public key, then totype a bunch of characters to add entropy to the system.  (The dotshave to get most of the way across the screen; it takes a minute orso.)In this process, you are creating a new DSA (Digital SignatureAlgorithm) public and private key.  makekeys is also capable ofgenerating ElGamal (client) keys, and by default will also now createthem for the SYSTEM user (they are ignored if the SafeTP clientsoftware is not installed on your machine)The DSA keys are stored in protected area of the registry where onlyadministrators and the daemon can see them. Note that if your windowsdirectory is on a FAT partition, these keys may be visible to anyone.The public key should be made available to users, but the private key must be kept secret in order to assure system security.To make the public key available to users out-of-band, this is therecommended procedure:  (from c:\sftpd)  c:\sftpd> viewkey DSA/public.key > pubkey.txt	This will place a copy of the public key in the file pubkey.txt, in aformat suitable for distribution to users of the SafeTP clientsoftware.2.  Modify Exceed configuration2.1  Enable ftpd and make it listen on a new portBecause sftpd is only a proxy, it uses the services of the Exceed FTPdaemon (ftpdw.exe) to perform all file transactions.The network services provided by Exceed are controlled by HCL Inetd.To view your HCL Inetd configuration, open the windows control paneland double-click on "HCL Inetd".There, select Ftpd from the list and use the configure button to seethe configuration screen for ftpd. There, change the Ftpd daemon touse a _new_ port (say port 351), and set the maximum server count tosomething reasonable (this is the number of simultaneous serversessions permitted). Return to the main list and make sure it'senabled.  NOTE: Whenever you make configuration changes to a service,you must disable and re-enable that service in order for the changesto take effect, and you must use the "Save" button to save yourchanges when you finish work.If your control panel doesn't contain an icon for HCL InetD or theconfiguration list doesn't contain an entry for ftpd, then youprobably forgot to install those components when you installedExceed. See part 1.2.2  Add sftpd and configure it for port 21Next, use the "Add" button to add a new daemon entry for sftpd.  Inthe configuration screen, set the program filename to"c:\sftpd\sftpd.exe".  Set the TCP port to "21" (this is the defaultfor FTP).  Set the optional parameters to "-f351" (the "351" is theport you set for ftpd) You may also consider adding the options: "-9"to disallow unencrypted incoming connections - probably a good idea ifyou want really tight security, or the options: "-lc:\sftpd\log.txt-d1" if you want to log user activity.  To see other options, you canrun the command:(from c:\sftpd)C:\sftpd> sftpd.exe -hYou should also set the max servers count to control the number ofsimultaneous users.2.3 (Optional) Setup access control for ftpdIf you wish to control which users have access to your FTP server,create a new Windows NT user group (using the user manager) called"FTPAccess" and add permitted users to this group. If the groupdoesn't exist, then by default ftpd will allow all users to haveaccess to the FTP server.FTP users will be restricted using the normal Windows NT filesystemaccess rules based on their login (NTFS partitions only). However, youcan also establish some additional drive-level restrictions for FTPusers.  See the Exceed online help files under "ftpd" for details.3. TroubleshootingConsult this section if things go wrong.3.3  "510 Assertion failed: LoadKey for DSA/public.key failed, ..."Context: This message may be returned by sftpd, in the FTP protocolstream, such that the client will see this message.Cause(1): The DSA keys have not been created.Solution: Run 'makekeys' (see section 1.3).3.5  "510 connect: Connection refused (code 146)"Context: Client tries to connect to server, message is returned inprotocol stream.Cause: The server is misconfigured; this message results from sftpdtrying, and failing, to contact ftpd.  sftpd obtains the port on whichto contact ftpd from the "-f" switch.  ftpd is started by inetd, andshould be set to start in response to contact on the port youspecified in the "-f" switch.Solution: Fix the HCL Inetd configuraion (see section 2).

⌨️ 快捷键说明

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