home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / roadmap.zip / RMMAP13.TXT < prev    next >
Text File  |  1995-04-12  |  10KB  |  237 lines

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