home *** CD-ROM | disk | FTP | other *** search
/ The Best Internet Programs / BESTINTERNET.bin / latest / roadmap / map13.txt < prev    next >
Internet Message Format  |  1995-02-08  |  10KB

  1. Date:         Tue, 7 Feb 1995 10:11:56 -0600
  2. From: BITNET list server at UA1VM (1.8a) <LISTSERV@UA1VM.UA.EDU>
  3. Subject:      File: "MAP13 LESSON"
  4.  
  5. MAP13: FTP (PART ONE)
  6.  
  7.  
  8.      "The desire of knowledge, like the thirst of riches, increases
  9.       ever with the acquisition of it." -- Laurence Sterne, Tristram
  10.       Shandy
  11.  
  12.  
  13. Welcome back to the third week of the Roadmap workshop! I hope
  14. that you are having as much fun participating in this workshop
  15. as I am having teaching it! :)
  16.  
  17. Last week we used a tool called "Telnet" which allowed us to access
  18. remote computers and run programs on those remote computers.
  19.  
  20. This week we are going to use a tool called "File Transfer Protocol"
  21. (or "FTP") which will allow us to access remote computers and retrieve
  22. files from these computers. Actually, it is probably more accurate
  23. to say that we will be using "anonymous" FTP, but I'll explain that
  24. in a minute.
  25.  
  26. What sort of files are available through FTP?  Well, "hundreds of
  27. systems connected to the Internet have file libraries, or archives,
  28. accessible to the public. Much of this consists of free or low-cost
  29. {computer} programs for virtually every make of computer. If you
  30. want a different communications program for your IBM, or feel like
  31. playing a new game on your Amiga, you'll {probably} be able to get it
  32. {using FTP}."
  33.  
  34. "But there are also libraries of documents as well. If you want a
  35. copy of a recent U.S. Supreme Court decision, you can {get a copy
  36. using FTP}. Copies of historical documents, from the Magna Carta to
  37. the Declaration of Independence are also yours for the asking ...
  38. You can also find song lyrics, poems, {and} even summaries of
  39. every {Animaniacs} episode ever made. You can also find extensive
  40. files detailing everything you could possibly want to know about
  41. the Net itself" (1)
  42.  
  43. Before we get too in-depth into FTP, I think that now is as good
  44. a time as any to quickly review the client/server relationship
  45. that I briefly mentioned in lesson three (MAP03: Levels of Internet
  46. Connectivity).
  47.  
  48. "Client" is just another word for a program running on your
  49. service provider's system that enables you to talk to, and get
  50. stuff from, distant computers. The client on your service provider's
  51. system takes your commands and turns them into requests for information
  52. from programs -- "servers" -- running on other, distant computers.
  53.  
  54. The client/server relationship allows you to TELNET into remote
  55. computers and run programs on those remote computers, and it also
  56. allows you to use FTP to get files from remote sites.
  57.  
  58. The client/server relationship is also what makes my job as an Internet
  59. trainer quite difficult. While all of the FTP clients out there do the
  60. exact same thing, they all use different commands to do it.
  61.  
  62. Fortunately, if you can understand the basics of what happens during
  63. an FTP session, the commands -- no matter what client you are using --
  64. are pretty easy.
  65.  
  66. The basic steps in an FTP session are:
  67.  
  68.      1. Start-up your FTP client
  69.      2. Give your FTP client an address to connect to (and, just
  70.         like TELNET, step one and two can be combined into one
  71.         easy step).
  72.      3. Identify yourself to the remote site
  73.      4. Give the remote site your password
  74.      5. Look around the directory for files
  75.      6. Change Directories
  76.      7. Set the transfer mode (optional)
  77.      8. Get the file(s) you want
  78.      9. Quit
  79.  
  80. The best way to understand what is going on is to look at a sample
  81. FTP session. The University of Alabama's connection to the Internet
  82. is through SURAnet (a large regional network), so I'm going to FTP
  83. to them.
  84.  
  85. Before I do that, though, there are three things that I need to
  86. emphasize:
  87.  
  88.      1. FTP requires a heck of a lot of resources, both on your
  89.         system and on the remote system that you are accessing.
  90.         Because of this, FTP sessions should only be run during
  91.         non-working hours (usually 6 PM to 6 AM local).
  92.  
  93.         I realize that this constraint is going to be a difficult
  94.         for those of you who are reading this at work, and who only
  95.         have Internet (and FTP access) through your employer. However,
  96.         as responsible Internet citizens we have to remember that
  97.         the FTP sites are providing us FTP access out of the kindness
  98.         of their hearts. If we take advantage of this kindness, and
  99.         access various FTP sites during working hours, those FTP
  100.         sites may decide to close their doors to the public ... and
  101.         then EVERYONE loses.
  102.  
  103.      2. In light of what was said in #1, please do not flood SURAnet.
  104.         Later this week I will post a list of FTP sites that you
  105.         can visit (much like the TELNET list I posted Friday).
  106.         Until I post that list, just sit back and enjoy the show :)
  107.  
  108.      3. Since this lesson is already over 100 lines long, I hope that
  109.         you won't mind if I break this FTP lesson into two lessons.
  110.         The first lesson will be today, and I'll finish tomorrow.
  111.         This will mean that we will end this lesson in the middle
  112.         of our sample FTP session, but it will also mean that this
  113.         lesson won't be the size of a small book :)
  114.  
  115. Starting an FTP session is pretty easy. For most of you, all you
  116. have to do to start-up your FTP client is type
  117.  
  118.           ftp
  119.  
  120. on you system's command line (or, if you are in a Windows or Mac
  121. environment, double-click on the FTP icon).
  122.  
  123. From there, you would give the client an FTP address to connect to.
  124.  
  125. Like TELNET, however, there is a way to combine these two steps into
  126. one, easy step. For most of you, to access your FTP client and give
  127. your client an address to hook up to, all you would have to do it
  128. type the command
  129.  
  130.           ftp <site address>
  131.  
  132. and replace <site address> with the address of the FTP site that you
  133. want your client software to access.
  134.  
  135. In our example, the SURAnet FTP address is ftp.sura.net, so I would type
  136.  
  137.           ftp ftp.sura.net
  138.  
  139. to start an FTP session. (Note that the second "ftp" is part of
  140. SURAnet's FTP address. If I wanted to ftp to info.umd.edu, I would
  141. type "ftp info.umd.edu"; if I wanted to ftp to lcs.mit.edu, I would
  142. type "ftp lcs.mit.edu").
  143.  
  144. Once I hit the enter key, the following appears on my screen:
  145.  
  146.    ftp ftp.sura.net
  147.    Connecting to ftp.sura.net 128.167.254.179, port 21
  148.    220 nic.sura.net FTP server (Version wu-2.4(1) Fri May 20 10:20:58
  149.    EDT 1994) ready.
  150.    USER (identify yourself to the host):
  151.  
  152. The second line tells me that my system is connecting to ftp.sura.net
  153. (and even gives me the IP number for ftp.sura.net), the third line is
  154. some automatic information from SURAnet, and the bottom line is asking
  155. me to log in.
  156.  
  157. If I had an account on the SURAnet system, I would enter my SURAnet
  158. user ID. But, since I don't have an account on this system, I have
  159. to find another way to access the system. ;)
  160.  
  161. This is where the "anonymous" FTP I mentioned earlier comes in :)
  162. The other way to access some FTP sites -- at least those FTP sites
  163. that allow outside access -- is to use the userid "anonymous".
  164. By using the name "anonymous", you are telling that FTP site that
  165. you aren't a regular user of that site, but you would still like to
  166. access that FTP site, look around, and retrieve files.
  167.  
  168. So, where it says USER, I type the word
  169.  
  170.           anonymous
  171.  
  172. hit enter, and cross my fingers. If SURAnet does not allow anonymous
  173. access, I'm about to find out :)
  174.  
  175.    >>>USER anonymous
  176.    331 Guest login ok, send your complete e-mail address as password.
  177.    Password:
  178.  
  179. COOL! Its going to let me in. All I have to do is give the site a
  180. password.
  181.  
  182. Out of politeness to the FTP site, if you login as "anonymous", you
  183. need to use your full Internet address as your password. This helps
  184. the FTP site keep track of who has visited its site.
  185.  
  186. So, since it wants my password, and since the password for any
  187. anonymous FTP session is my full Internet address, I type
  188.  
  189.           pcrispe1@ua1vm.ua.edu
  190.  
  191. (Stop laughing -- p-crispy-one is *NOT* funny!!). Once I hit enter,
  192. my screen fills with the following:
  193.  
  194.    >>>PASS ********
  195.