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

  1.  
  2. MAP11: TELNET (PART ONE)
  3.  
  4.  
  5.      "Thanks to the interstate highway system, it is now possible
  6.       to travel across the country from coast to coast without
  7.       seeing anything." -- Charles Kuralt, On the Road
  8.  
  9.  
  10. We are about to enter a new section of this workshop. For the past
  11. week, we have talked about communicating on a one-to-one basis
  12. (e-mail) and on a one-to-many basis (LISTSERV and Usenet).
  13.  
  14. Today, I'm going to show you how to log in to other computers around
  15. the world and take full advantage of the public programs and services
  16. that these other computers offer.
  17.  
  18. There is some bad news, though. Some of you, especially a good
  19. number of you with "level one" Internet access, do not have access
  20. to TELNET. If this is true for you, please accept my apologies.
  21. I promise to make it up to you next week when I show you File
  22. Transfer Protocol -- and besides, you can always take today's lesson
  23. and tomorrow's lesson and bug your local Internet provider into
  24. offering TELNET (you can also save this lesson for the day
  25. that you do have TELNET access).
  26.  
  27. With TELNET, the commands that you type on your keyboard are sent
  28. from your terminal to your local Internet service provider, and
  29. then from your provider to the remote computer that you have
  30. accessed. Unlike the LISTSERV commands that you sent last week
  31. that took CENTURIES to process (okay, a *slight* exaggeration),
  32. TELNET commands (usually) travel so fast that you can't even
  33. tell that you are using a remote computer.
  34.  
  35. So what can you do with this ability to log into remote computers?
  36. If your local Internet provider allows it, it is possible for you
  37. to TELNET into your account from another city and check your e-mail
  38. while you are on vacation or away on business. You can also TELNET
  39. into huge databases to do research, or even TELNET into libraries
  40. around the world to check if they have a certain book that you
  41. are looking for. TELNET also offers an easy entry into the world
  42. of Gophers and the World Wide Web for those people who may not
  43. otherwise have access to these tools.
  44.  
  45. Last Tuesday (in MAP04: E-MAIL), I showed you that an Internet
  46. address for a user looked something like: user@address. Well, since
  47. we are no longer interested in the person -- we want to access the
  48. computer, not the person -- we can throw away both the "user" and the
  49. "@" part. All we care about now is the stuff *after* the @.
  50.  
  51. TELNET addresses look something like this:
  52.  
  53.      seabass.st.usm.edu        cybernet.cse.fau.edu
  54.      bbhost.hq.eso.org         fedworld.gov
  55.      128.118.36.5              192.160.13.1
  56.  
  57. Gee ... that's easy. Also notice that TELNET addresses can be
  58. in domain name format (i.e. seabass.st.usm.edu) or in IP
  59. address format (i.e. 120.118.36.5). (Note: both the domain
  60. name system and the IP address system were discussed in MAP04:
  61. E-MAIL).
  62.  
  63. You may also see TELNET addresses with numbers stuck on the
  64. END of them. Those numbers are "port" numbers. Port numbers don't
  65. have anything to do with hardware ports on the computer; instead
  66. they are (sort of) a way for you to tell the remote computer which
  67. program or server you want it to pull up. A TELNET address with a port
  68. number allows you not only to access a remote computer, but to also
  69. pull up a specific program or server on that remote computer (BTW, the
  70. standard port number is port 23):
  71.  
  72.      seabass.st.usm.edu 23     cybernet.cse.fau.edu 2010
  73.      bbhost.hq.eso.org 6969    fedworld.gov 4242
  74.      128.118.36.5 23           192.160.13.1 66
  75.  
  76. We seem to have the addresses down pat. Now for the fun stuff!
  77.  
  78. There are seven steps to a successful TELNET session. These steps
  79. are all based on simple common sense, and I will explain them all
  80. in a minute. But first, here are the seven steps:
  81.  
  82.      1. Start-up the TELNET program
  83.      2. Give the TELNET program an address to connect to
  84.         (BTW, some really nifty TELNET packages allow you
  85.         to combine steps 1 and 2 into one simple step!)
  86.      3. Make a note of what the "escape character" is
  87.      4. Log in to the remote computer
  88.      5. Set the "terminal emulation"
  89.      6. Play around on the remote computer
  90.      7. Quit
  91.  
  92. Now let's talk about each of these steps. There are a lot of different
  93. TELNET software programs around, but each of these programs operate on
  94. the same basic principles. (BTW, my explanation may be a little
  95. "mainframe-y" but you will soon discover that you can easily
  96. translate my explanation so that you can use TELNET in Windows
  97. or on a Macintosh).
  98.  
  99. Starting the TELNET program is easy. All most of you have to do is
  100. type the word TELNET on your command line, and the program will
  101. start right up. If you are using Windows or a Macintosh (or
  102. an equivalent), double-click on the TELNET icon.
  103.  
  104. The second step is to give the TELNET program the address of
  105. the computer that you want to access. This is where the programs
  106. start to differ. Some programs will automatically ask you to enter
  107. the address of the remote host, but most won't. If your program
  108. does not automatically ask you for the address, you need to type
  109.  
  110.           open <site address> <port number>
  111.  
  112. on the command line. For example, to get TELNET access to
  113. YALEINFO.YALE.EDU 7000, you would type OPEN YALEINFO.YALE.EDU 7000.
  114. (If you are using Windows or a Mac, the OPEN command may be
  115. located on a pull-down menu). If you don't include the port
  116. number, TELNET will automatically assume that you want to
  117. connect to port 23.
  118.  
  119. Remember when I said that some nifty TELNET programs allow you
  120. start-up the TELNET program and access the address all in one
  121. easy step? Instead of doing the two steps I just went over, you
  122. may be able to just type
  123.  
  124.           telnet <site address> <port number>
  125.  
  126. on the command line (for example: TELNET YALEINFO.YALE.EDU 7000).
  127.  
  128. After you have told TELNET which computer you want it to access, and
  129. right before you gain access to the remote computer's login screen,
  130. you will see something like this:
  131.  
  132.      telnet YALEINFO.YALE.EDU 7000
  133.      Trying 130.132.21.53 Port 7000 ...
  134.      Connected to YALEINFO.YALE.EDU
  135.      Escape character is ...
  136.  
  137. This tells you that your TELNET program is trying to access the
  138. YALEINFO.YALE.EDU 7000 address, gives the IP address for YALEINFO
  139. (remember those from MAP04?), tells you when you are connected,
  140. and gives you the escape character. REMEMBER THE ESCAPE CHARACTER!
  141. You are going to need it in a second :)
  142.  
  143. The next step is to log in to the remote computer. Everyone should
  144. know how to log in to a computer by now ;)    <=== a winking smiley
  145.  
  146. If you are accessing a public site, the "login" -- the "password"
  147. that you need to access the remote computer -- will probably be
  148. publicly known. For example, tomorrow I will send you a list of
  149. several dozen TELNET sites, including their addresses and logins.
  150. Some public sites even TELL you what the login is when you TELNET
  151. to them! Heck, some TELNET sites are wide open and do not require
  152. a login or password at all!!
  153.  
  154. The fifth step is to set the terminal emulation. All this means is that
  155. you are going to tell the remote site how data should be shown on
  156. your screen. The most common terminal emulation setting is VT100,
  157. which is the standard for terminal-based communications.
  158.  
  159. If you do not have a VT100 terminal, or a terminal that can pretend
  160. its a VT100 terminal. you may have to set your terminal emulation
  161. to either your correct terminal type or, if you do not know your
  162. your correct terminal type, to a "dumb" terminal emulation.
  163.  
  164. Fortunately, some TELNET sites automatically take care setting the
  165. terminal emulation for you, so you don't even have to worry about
  166. it.
  167.  
  168. If you end up with a screen full of gibberish, chances are you did
  169. not use the correct terminal emulation setting. Your best bet if this
  170. happens is to disconnect from the site and try again.
  171.  
  172. I think you can figure out the sixth step -- play around on the
  173. remote computer -- all by yourself :)
  174.  
  175. The final step is to quit. Some sites are nice and tell you how to
  176. do this, but most expect you to figure out how to quit on your
  177. own. That is where the escape character comes in!
  178.  
  179. Remember that once you access the remote computer, every keystroke
  180. of yours will be carried out not on your computer but on the remote
  181. computer! Typing the escape character (usually the control key and the
  182. right bracket key pressed at the same time) temporarily interrupts
  183. your TELNET session and puts you into the TELNET command mode.
  184.  
  185. Once you are in the command mode, you can use a couple of commands:
  186.  
  187.      CLOSE       Closes your TELNET connection to the remote computer
  188.                  and either returns you to the command mode (if you
  189.                  started in the command mode) or quits TELNET.
  190.      QUIT        Quits the TELNET program; if you are connected to
  191.                  a remote computer, QUIT will disconnect you from
  192.                  the remote computer and then quit TELNET.
  193.      SET ECHO    If you can't see what you are typing, or if you
  194.                  type and see double, this command should take
  195.                  care of the problem
  196.      <ENTER>     (or <RETURN>) Pressing the enter or return key
  197.                  will take you out of TELNET command mode and
  198.                  return you to your TELNET session.
  199.      OPEN        Opens a connection to a remote computer
  200.  
  201. So, if you are in the middle of a TELNET session and you decide
  202. to quit, you would type the escape character to enter the TELNET
  203. command mode, and then type the word QUIT.
  204.  
  205. One last thing and I will let you go: regular TELNET does not
  206. work if you are trying to TELNET to an IBM 3270 mainframe computer.
  207. You'll have to use TN3270 instead. It works just like TELNET,
  208. only the keys on your keyboard may change a little (IBM uses
  209. something called map3270 to lay out the keys, and IBM uses a
  210. lot of function keys).
  211.  
  212. HOMEWORK
  213.  
  214.      Study this lesson carefully. Tomorrow I am going to send
  215.      you a huge list of TELNET addresses, and turn you loose
  216.      to wreak havoc on the Internet :)
  217.  
  218.      Also, a not-so-subtle hint: we just ended one section of
  219.      the workshop and entered a new one. What does the teacher
  220.      usually give you when a class section ends?
  221.  
  222.      Study hard >:)        <===== that's a devil smiley
  223.  
  224.  
  225.    PATRICK DOUGLAS CRISPEN    THE VIEWS EXPRESSED IN THIS LETTER DO NOT
  226.     PCRISPE1@UA1VM.UA.EDU      NECESSARILY REPRESENT THE VIEWS OF THE
  227.   THE UNIVERSITY OF ALABAMA      UNIVERSITY OF ALABAMA - TUSCALOOSA
  228.  
  229.       ROADMAP: COPYRIGHT PATRICK CRISPEN 1994. ALL RIGHTS RESERVED.
  230.  
  231.