"The desire of knowledge, like the thirst of riches, increases ever with the acquisition of it."Welcome back to the third week of the Roadmap workshop! I hope that you are having as much fun participating in this workshop as I am having teaching it! :)
-- Laurence Sterne, Tristram Shandy
Last week we used a tool called "Telnet" which allowed us to access remote computers and run programs on those remote computers.
This week we are going to use a tool called "File Transfer Protocol" (or "FTP") which will allow us to access remote computers and retrieve files from these computers. Actually, it is probably more accurate to say that we will be using "anonymous" FTP, but I'll explain that in a minute.
What sort of files are available through FTP? Well, "hundreds of systems connected to the Internet have file libraries, or archives, accessible to the public. Much of this consists of free or low-cost computer programs for virtually every make of computer. If you want a different communications program for your IBM, or feel like playing a new game on your Amiga, you'll probably be able to get it using FTP."
"But there are also libraries of documents as well. If you want a copy of a recent U.S. Supreme Court decision, you can get a copy using FTP. Copies of historical documents, from the Magna Carta to the Declaration of Independence are also yours for the asking ... You can also find song lyrics, poems, and even summaries of every Animaniacs episode ever made. You can also find extensive files detailing everything you could possibly want to know about the Net itself" (1)
Before we get too in-depth into FTP, I think that now is as good a time as any to quickly review the client/server relationship that I briefly mentioned in lesson three ( MAP03 : Levels of Internet Connectivity).
"Client" is just another word for a program running on your service provider's system that enables you to talk to, and get stuff from, distant computers. The client on your service provider's system takes your commands and turns them into requests for information from programs -- "servers" -- running on other, distant computers.
The client/server relationship allows you to TELNET into remote computers and run programs on those remote computers, and it also allows you to use FTP to get files from remote sites.
The client/server relationship is also what makes my job as an Internet trainer quite difficult. While all of the FTP clients out there do the exact same thing, they all use different commands to do it.
Fortunately, if you can understand the basics of what happens during an FTP session, the commands -- no matter what client you are using -- are pretty easy.
The basic steps in an FTP session are:
Before I do that, though, there are three things that I need to emphasize:
I realize that this constraint is going to be a difficult for those of you who are reading this at work, and who only have Internet (and FTP access) through your employer. However, as responsible Internet citizens we have to remember that the FTP sites are providing us FTP access out of the kindness of their hearts. If we take advantage of this kindness, and access various FTP sites during working hours, those FTP sites may decide to close their doors to the public ... and then EVERYONE loses.
ftpon you system's command line (or, if you are in a Windows or Mac environment, double-click on the FTP icon).
>From there, you would give the client an FTP address to connect to.
Like TELNET, however, there is a way to combine these two steps into one, easy step. For most of you, to access your FTP client and give your client an address to hook up to, all you would have to do it type the command
ftp <site address>and replace <site address> with the address of the FTP site that you want your client software to access.
In our example, the SURAnet FTP address is ftp.sura.net, so I would type
ftp ftp.sura.netto start an FTP session. (Note that the second "ftp" is part of SURAnet's FTP address. If I wanted to ftp to info.umd.edu, I would type "ftp info.umd.edu"; if I wanted to ftp to lcs.mit.edu, I would type "ftp lcs.mit.edu").
Once I hit the enter key, the following appears on my screen:
ftp ftp.sura.netThe second line tells me that my system is connecting to ftp.sura.net (and even gives me the IP number for ftp.sura.net), the third line is some automatic information from SURAnet, and the bottom line is asking me to log in.
Connecting to ftp.sura.net 128.167.254.179, port 21
220 nic.sura.net FTP server (Version wu-2.4(1) Fri May 20 10:20:58
EDT 1994) ready.
USER (identify yourself to the host):
If I had an account on the SURAnet system, I would enter my SURAnet user ID. But, since I don't have an account on this system, I have to find another way to access the system. ;)
This is where the "anonymous" FTP I mentioned earlier comes in :) The other way to access some FTP sites -- at least those FTP sites that allow outside access -- is to use the userid "anonymous". By using the name "anonymous", you are telling that FTP site that you aren't a regular user of that site, but you would still like to access that FTP site, look around, and retrieve files.
So, where it says USER, I type the word
anonymoushit enter, and cross my fingers. If SURAnet does not allow anonymous access, I'm about to find out :)
>>>USER anonymousCOOL! Its going to let me in. All I have to do is give the site a password.
331 Guest login ok, send your complete e-mail address as password.
Password:
Out of politeness to the FTP site, if you login as "anonymous", you need to use your full Internet address as your password. This helps the FTP site keep track of who has visited its site.
So, since it wants my password, and since the password for any anonymous FTP session is my full Internet address, I type
pcrispe1@ua1vm.ua.edu(Stop laughing -- p-crispy-one is NOT funny!!). Once I hit enter, my screen fills with the following:
>>>PASS ******** 230- SURAnet ftp server running wuarchive experimental ftpd 230- 230-Welcome to the SURAnet ftp server. If you have any problems with 230-the server please mail the to systems@sura.net. If you do have problems, 230-please try using a dash (-) as the first character of your password 230- -- this will turn off the continuation messages that may be confusing 230-your ftp client. ... 230 Guest login ok, access restrictions apply. Command:Notice the line "Guest login ok, access restrictions apply." This means that the site has given me access, but I only have access to the files that are available to the general public.
Okay ... now what? I've started-up my FTP client, I've given the client an FTP address to connect to, I've identified myself to the remote site (I told it that I am anonymous), and I've given the site my password.
Now it's time to see what sort of files and directories are around, and to get those files ... which we will do tomorrow :)
or you can go back to the Index .
To unsubscribe from any Roadmap workshop, please send an e-mail letter to LISTSERV@UA1VM.UA.EDU which says UNSUB * in the body of your letter.
The address that sent this e-mail letter (CRISPEN@UA1VM.UA.EDU) is actually the address of an automated error processor. Please DO NOT reply to this e-mail letter as the error processor will consider your reply to be an error message and will delete your letter unread. To contact Patrick Crispen, please use my PCRISPE1@UA1VM.UA.EDU address.
(\__/) .~ ~. ))
/O O `./ .' PATRICK DOUGLAS CRISPEN
{O__, \ { PCRISPE1@UA1VM.UA.EDU
/ . . ) \ THE UNIVERSITY OF ALABAMA
|-| '-' \ } ))
.( _( )_.'
'---.~_ _ _& Warning: squirrels.