home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / e / id-iks-02.txt < prev    next >
Text File  |  2020-01-01  |  36KB  |  859 lines

  1. Internet Engineering Task Force                            Frank da Cruz
  2. INTERNET-DRAFT                                         Jeffrey E. Altman
  3. <draft-columbia-kermit-service-02.txt>               Columbia University
  4.                                                          25 January 2000
  5.                                                    Expires: 25 July 2000
  6.  
  7.  
  8.                         INTERNET KERMIT SERVICE
  9.  
  10.                                 DRAFT 02
  11.  
  12.  
  13. STATUS OF THIS MEMO
  14.  
  15.    This document is an Internet-Draft and is in full conformance with
  16.    all provisions of Section 10 of RFC2026.  Internet-Drafts are working
  17.    documents of the Internet Engineering Task Force (IETF), its areas,
  18.    and its working groups.  Note that other groups may also distribute
  19.    working documents as Internet-Drafts.
  20.  
  21.    Internet-Drafts are draft documents valid for a maximum of six months
  22.    and may be updated, replaced, or obsoleted by other documents at any
  23.    time.  It is inappropriate to use Internet-Drafts as reference mate-
  24.    rial or to cite them other than as "work in progress."
  25.  
  26.    The list of current Internet-Drafts can be accessed at
  27.    http://www.ietf.org/ietf/1id-abstracts.txt
  28.  
  29.    The list of Internet-Draft Shadow Directories can be accessed at
  30.    http://www.ietf.org/shadow.html.
  31.  
  32.    The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
  33.    "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
  34.    document are to be interpreted as described in RFC 2119.
  35.  
  36.  
  37. ABSTRACT
  38.  
  39. This document describes a new file transfer service for the Internet
  40. based on Telnet Protocol for option negotiation and Kermit Protocol for
  41. file transfer and management.  The Internet Kermit Service provides
  42. access to both authenticated and anonymous users.  The use of Kermit
  43. protocol over a Telnet connection provides several advantages over FTP,
  44. including easy traversal of firewalls, transfers over multiple
  45. transports, and security via a combination of supported Telnet
  46. authentication and encryption option negotiations, plus significant
  47. functional benefits.  While this document describes a new service for 
  48. the Internet, the clients for this service already exist on most 
  49. platforms in the form of Telnet clients that support the Kermit file
  50. transfer protocol.  These clients are available not only from Columbia
  51. University's Kermit Project but also numerous third parties.
  52.  
  53.  
  54. CONTENTS
  55.  
  56.   0. PREFACE
  57.   1. INTRODUCTION
  58.   2. BACKGROUND
  59.   2.1. History
  60.   2.2. Motivation
  61.   3. THE INTERNET KERMIT SERVICE MODEL
  62.   3.1. Server-Side Kermit Server
  63.   3.2. Client-Side Kermit Server
  64.   3.3. Loosely Coupled Operation
  65.   4. SECURITY CONSIDERATIONS
  66.   4.1. AUTHENTICATION
  67.   4.1.1. Telnet Authentication
  68.   4.1.2. Plaintext Authentication via Kermit REMOTE LOGIN
  69.   4.1.3. Plaintext Authentication via Command Prompt
  70.   4.1.4. Anonymous Login
  71.   4.2. ENCRYPTION (PRIVACY)
  72.   4.2.1  Telnet Encryption
  73.   4.2.2  Telnet Start_TLS
  74.   5. SERVICES
  75.   5.1. Features for System Administrators
  76.   5.2. Features for Users
  77.   5.3. User Interface
  78.   6. REFERENCES
  79.   7. AUTHORS' ADDRESS
  80.  
  81.  
  82. 0. PREFACE
  83.  
  84. This Internet-Draft is meant to be used as reference material for the
  85. Kermit/Telnet Birds of a Feather session which will be held at the 43rd
  86. IETF meeting in Orlando, Florida, USA during the week of 7 December
  87. 1998.  It is hoped that this document will provide necessary background
  88. material for serious discussion of this proposed service.  Future
  89. revisions of this draft will become the standards document after the
  90. formation of an appropriate working group.
  91.  
  92.  
  93. 1. INTRODUCTION
  94.  
  95. The Internet Kermit Service is intended to:
  96.  
  97.  1. Provide direct access to Kermit file transfer and management
  98.     services without requiring the user to first login to a shell 
  99.     account;
  100.  
  101.  2. Provide Kermit file transfer and management services to anonymous 
  102.     users;
  103.  
  104.  3. Provide services to all Telnet clients that support Kermit file
  105.     transfer protocol via a simple, predictable, scriptable, and
  106.     well-documented textual interface;
  107.  
  108.  4. Provide direct and tightly-coupled access to a Kermit server
  109.     when requested via the Telnet Kermit Option [TKO].
  110.  
  111. This draft assumes knowledge of Transmission Control Protocol, the
  112. Telnet Protocol [TEL], the Kermit File Transfer Protocol [KER,PRF],
  113. Telnet Kermit Option [TKO], and the commands and features of Kermit
  114. software [CKB,CMG,K95].
  115.  
  116. The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
  117. "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
  118. document are to be interpreted as described in RFC 2119 [BCP].
  119.  
  120. Definitions:
  121.  
  122. Kermit server
  123.   A software program that is ready to accept and act upon commands in
  124.   the form of well-defined Kermit packets [KER].
  125.  
  126. Kermit client
  127.   A software program that receives requests through its user interface
  128.   from a human user (or a script or other source) and translates them
  129.   to command packets, which it sends to a Kermit server, thus
  130.   initiating a Kermit protocol transaction such as the transfer of one
  131.   or more files.
  132.  
  133.  
  134. 2. BACKGROUND
  135.  
  136. 2.1. History
  137.  
  138. "Kermit" is the name of an extensible platform- and medium-independent
  139. file transfer and management protocol [KER,PRF] and of a suite of
  140. communications software programs that implement it and integrate it with
  141. other communications functions [CMG,CKB,K95].
  142.  
  143. The Kermit protocol was first developed at Columbia University in New
  144. York City in 1981 for transferring files without errors between diverse
  145. types of computers over potentially hostile communication links.  Since
  146. 1981, the Kermit Project at Columbia University has expanded the
  147. protocol, developed communications software that implements it upon key
  148. platforms, and worked with volunteer programmers at other sites adapting
  149. Kermit protocol to other platforms or communication methods.  The Kermit
  150. Project also serves as the central point of Kermit software development,
  151. support, information, and distribution throughout the world.
  152.  
  153. Kermit software is now available for nearly every computer and operating
  154. system in existence.  The major features of the most popular Kermit
  155. programs are:
  156.  
  157.  . Connection establishment and maintenance for a variety of connection
  158.    methods including direct serial, dialup, TCP/IP, X.25, DECnet, and
  159.    NETBIOS.
  160.  
  161.  . Terminal emulation.
  162.  
  163.  . Error-free transfer of both text and binary files, individually or
  164.    in groups.
  165.  
  166.  . Character-set translation during both terminal emulation and
  167.    text-mode file transfer -- a unique feature of Kermit software.
  168.  
  169.  . Remote file management through the client/server protocol.
  170.  
  171.  . A powerful and portable scripting language allowing complete
  172.    automation of any task that can be performed manually.
  173.  
  174. Kermit's command and script language is consistent across all platforms
  175. and communication methods, thus offering a unified method for
  176. accomplishing a wide range of communication tasks manually or under
  177. script control.
  178.  
  179. A single Kermit program combines the functions of many different
  180. programs such as uucp, cu, tip, telnet, rlogin, ftp, iconv, and expect:
  181. it is a Telnet and Rlogin client that can also transfer files; it is a
  182. file transfer program that can also convert character sets; it is a
  183. dialout program that can use dialing directories and understands country
  184. codes and area codes; it is fully scriptable; it offers both
  185. client/server and interactive modes of operation.  In its desktop
  186. versions (particularly for DOS, Windows, and OS/2) it offers all the
  187. features of communications software that are usually lacking from
  188. Internet client software (key mapping, colors, scrollback, mouse
  189. functions, printer control, etc)
  190.  
  191. Kermit software is widely used throughout the academic, government, and
  192. corporate spheres, both in the USA and internationally.
  193.  
  194. In addition to the Kermit software developed and/or distributed by the
  195. Kermit Project at Columbia University, hundreds of other software
  196. products -- commercial, shareware, and freeware -- also include some
  197. level of support for the Kermit protocol.  Thus there are hundreds,
  198. perhaps thousands, of independent and interoperable Kermit protocol
  199. implementations based upon the open Kermit protocol specification [KER].
  200.  
  201. The Internet has formed the primary mechanism by which users and
  202. developers of Kermit software have collaborated to produce feature and
  203. command sets that continually evolve to meet their needs as technology
  204. changes.
  205.  
  206. 2.2. Motivation.
  207.  
  208. Kermit protocol and software makes connections from one computer to
  209. another and transfers data between them.  Countless people "live" in
  210. Kermit all day long; as a customizable Telnet or Rlogin (or serial
  211. communication) client with a wide selection of terminal emulations and
  212. convenience features, it is their window onto the Internet.
  213.  
  214. Others use it in more creative ways, including some that involve key
  215. parts of the Internet, e.g. in batch or cron jobs that update news or
  216. Web servers or fetch email, or to monitor routers, terminal servers, and
  217. hubs and dial pagers when faults are detected.  It is used by vendors of
  218. telecommunications equipment for remote diagnosis, patching, and
  219. updates.  Telecom managers often use Kermit scripts to configure PBXs,
  220. muxes, routers, or terminal servers.  In the world of commerce, Kermit
  221. is widely used for financial transactions, EDI, medical claim
  222. submission, and so forth.  It is used with mobile barcode readers in
  223. warehousing and inventory applications.  It is found in US Postal
  224. Service sorting and scanning equipment.  It connects many of the
  225. logistics and supply systems throughout the military.  It is found in
  226. fast-food restaurant cash registers, milling and die-cutting machines,
  227. textile looms and cutters, printing presses, and medical diagnostic
  228. equipment.  It was the communications backbone of the 1994 Brazilian
  229. national election -- the largest in history.
  230.  
  231. And yet there has never been a strong, explicit connection of Kermit
  232. with the Internet.  In the early years, Kermit acted as a kind of
  233. do-it-yourself network, enabling ordinary users to make connections that
  234. were not already there, and for some years was the predominant method of
  235. connecting a personal computer to the ARPAnet (e.g. by dialing a TAC).
  236.  
  237. Nowadays, however, with so many of the world's computers on the
  238. Internet, the role of Kermit software and protocol is changing.  Kermit
  239. users on the network would like to have the features, functions, and
  240. interface they are accustomed to -- especially the automation features
  241. -- available for use in settings where presently only tools like FTP are
  242. available -- and even more so in situations where standard software like
  243. FTP can't be used.
  244.  
  245. An Internet Kermit Service can fill this role, and augment the data
  246. transfer power and flexibity of other Internet applications such as Web
  247. browsers:
  248.  
  249.  . Like FTP, Kermit provides a service that can be accessed from many
  250.    different platforms with a consistent set of commands, but unlike
  251.    FTP, these commands include programming constructions such as
  252.    variables, arrays, looping and selection mechanisms, and local and
  253.    remote procedure calls.
  254.  
  255.  . Like FTP, Kermit provides both text- and binary-mode data transfer,
  256.    as well as file management capabilities.  But Kermit also offers
  257.    numerous features lacking from FTP, such as character-set
  258.    translation, flexible file selection mechanisms, attribute
  259.    preservation, and so on (see Section 5.3 for a longer list).
  260.  
  261.  . Unlike standard FTP, Kermit can transfer data through multiple 
  262.    firewalls, proxies, and network address translators (NATs) on a 
  263.    single port.
  264.  
  265.  . Unlike FTP, Kermit can transfer data across a combination of
  266.    transports (e.g. dial-up to a terminal server and thence to an
  267.    Internet host).
  268.  
  269.  . Authentication and data transfer can take place over secure
  270.    connections (mutually authenticated and encrypted) using established
  271.    Telnet authentication and encryption options.
  272.  
  273.  . Unlike traditional Kermit use over Telnet, anonymous access is
  274.    possible, and the considerable overhead of the intervening Telnet
  275.    server and pseudoterminal service is eliminated.
  276.  
  277. Until now the primary obstacles to an Internet Kermit Service have been:
  278.  
  279.  . Issues of authentication, privacy, and anonymous access.  These have 
  280.    been addressed in our implementation, as described Section 4 of this 
  281.    document.
  282.  
  283.  . Issues of coordination and control.  A Kermit software program can be
  284.    in any of several "modes": at its command prompt or menu, awaiting
  285.    commands from the user; in terminal mode, in which the user's
  286.    keystrokes are sent to the remote computer or service; or in protocol
  287.    mode, in which two Kermit programs communicate via well-defined
  288.    Kermit packets [KER].  Commands or operations valid in one mode do
  289.    not necessarily work in another.  Until now, it has been the user's
  290.    responsibility to switch modes at one or both ends of the connection
  291.    as needed.  A companion draft [TKO] to this one specifies a mechanism
  292.    to closely couple the client and server via Telnet protocol
  293.    negotiations, allowing each to know the other's state and to switch
  294.    to the appropriate mode automatically so a valid and useful
  295.    relationship obtains at all times.
  296.  
  297.  . Lack of a standard TCP port.  The "registered" port 1649 was assigned 
  298.    by IANA for this purpose (27 September 1995) and is named "Kermit".  
  299.    (renamed from "Inspect".)
  300.  
  301.  
  302. 3. THE INTERNET KERMIT SERVICE MODEL
  303.  
  304. The Internet Kermit Service (IKS) uses a standard Telnet [TEL]
  305. connection, in which all Telnet rules apply.  Unlike FTP, which requires
  306. additional TCP connections, IKS uses a single channel for both signaling
  307. and data transfer.  The connection is multiplexed via (a) Telnet
  308. options, and (b) Kermit protocol messages.  This allows existing Telnet
  309. clients that also support the Kermit protocol, whether or not they
  310. support the Telnet Kermit Option [TKO], to use the IKS and take
  311. advantage of all relevant Telnet options including authentication and
  312. encryption.
  313.  
  314. The system Internet services daemon (e.g. inetd) waits for a connection
  315. on the Kermit socket (1649) and then starts the IKS on the new
  316. connection.  The IKS performs the familiar Telnet negotiations including
  317. the Telnet Kermit option.  Unlike a standard Telnet server, the IKS does
  318. not support the ability to present the user with an interactive system
  319. shell.  The Kermit socket is used only for file transfer and management
  320. functions provided by Kermit file transfer protocol and the Kermit
  321. script language.
  322.  
  323. Once the connection is established, the Telnet Kermit Option is
  324. negotiated in both directions.  The results determine which of the
  325. following configurations is used by the Telnet client and Server:
  326.  
  327.  . Server-side Kermit Server (SKS)
  328.  . Client-side Kermit Server (CKS)
  329.  . No Kermit Server (NKS)
  330.  
  331. Different procedures and functions apply to each configuration.  The
  332. configuration may be changed at any time by Telnet Kermit Option
  333. subnegotiations, which assure that the Telnet client and server are
  334. always in compatible states.
  335.  
  336. The three configurations are described in the following sections.
  337.  
  338. 3.1. Server-Side Kermit Server
  339.  
  340. In the Server-Side Kermit Server (SKS) configuration, the Telnet server
  341. is the Kermit server and the Telnet client is the Kermit client.  This
  342. configuration is used when both Telnet client and IKS support the Telnet
  343. Kermit Option and the IKS sends WILL KERMIT to the Telnet client and
  344. receives DO KERMIT from the Telnet client [TKO].
  345.  
  346. In this case, the IKS immediately starts a Kermit server and reports
  347. this to the Telnet client with a Telnet KERMIT START-SERVER
  348. subnegotiation.
  349.  
  350. The SKS configuration is appropriate when the user wishes to interact
  351. only with the Telnet client's commands or menus.
  352.  
  353. If authentication was not performed with one of the Telnet
  354. Authentication Option protocols, the Kermit server rejects all Kermit
  355. protocol operations (except REMOTE LOGIN, REMOTE HELP, REMOTE EXIT, BYE,
  356. or FINISH -- that is, the ones that request help, that log in, that
  357. close the connection, or that change the status of the connection)
  358. until:
  359.  
  360.  . A Kermit REMOTE LOGIN command successfully authenticates the user;
  361.  
  362.  . The login retry limit is reached;
  363.  
  364.  . A Kermit BYE or REMOTE EXIT command is received, which closes
  365.    the connection;
  366.  
  367.  . A Kermit FINISH command or a Telnet KERMIT REQ-KERMIT-STOP
  368.    subnegotiation is received to request the IKS exit from Kermit
  369.    server mode.  At this point, the IKS can either exit and close
  370.    the connection or issue an interactive login prompt, depending
  371.    on how it was started or configured by the system administrator.
  372.  
  373. Once the user is authenticated:
  374.  
  375.  . The Telnet client configures itself for Kermit client/server
  376.    operation, with itself as the Kermit client, communicating with the
  377.    server only by Kermit packets, and optionally adjusting its menus or
  378.    commands to eliminate functions (such as terminal emulation) that
  379.    make no sense in this context.
  380.  
  381.  . The relationship persists until the Telnet client and IKS agree to
  382.    terminate the Kermit server via Kermit protocol commands (BYE,
  383.    FINISH, or REMOTE EXIT), or by Telnet Kermit Option subnegotiation,
  384.    or by closing the connection.
  385.  
  386. 3.2. Client-Side Kermit Server
  387.  
  388. In the Client-Side Kermit Server (CKS) configuration, the Telnet server
  389. is the Kermit client, and the Telnet client is the Kermit server.  This
  390. configuration is used when the IKS has sent WONT KERMIT or SB KERMIT
  391. STOP-SERVER, and the Telnet Client has sent WILL KERMIT and SB KERMIT
  392. START-SERVER, indicating that it is prepared to accept and process
  393. Kermit protocol packets.
  394.  
  395. In the CKS configuration, the Telnet client assumes the role of Kermit
  396. server by virtue of its ability to recognize and process Kermit protocol
  397. packets in its terminal emulator.  Thus the Telnet client must not send
  398. WILL KERMIT or the KERMIT START-SERVER subnegotiation unless its
  399. terminal emulator is capable of recognizing Kermit packets.
  400.  
  401. If the IKS is at top command level (as opposed to executing a script),
  402. or when it reaches top level after finishing a script, it issues its
  403. interactive command prompt.
  404.  
  405. At the point, the user may type commands or send scripted commands to
  406. the IKS command prompt.  When a data-transfer command (such as SEND) is
  407. issued by the user at the IKS prompt, a Kermit packet is transmitted and
  408. recognized by the Telnet client, causing it to automatically perform the
  409. requested action (e.g. receive a file), and then resume its previous
  410. mode (terminal emulation or script execution) when the data transfer is
  411. complete.
  412.  
  413. Thus, in the CKS configuration, data transfers are initiated by the IKS
  414. rather than by the Telnet client.  This configuration is useful when the
  415. user prefers the command interface or repertoire of the server to that
  416. of the client.
  417.  
  418. If the IKS sends a Telnet KERMIT START-SERVER subnegotiation, the
  419. relationship switches automatically to Server-Side Kermit Server
  420. (Section 3.1), in which the Telnet client is the Kermit client and the
  421. Telnet server is the Kermit server.
  422.  
  423. If the Telnet client sends a KERMIT STOP-SERVER subnegotiation, the
  424. connection switches to No Kermit Server (Section 3.3) and the IKS issues
  425. its command prompt.  At this point, neither side is a Kermit server, and
  426. both sides may optionally disable Kermit protocol commands.  Subsequent
  427. user action can designate one side or the other as the Kermit server, as
  428. desired.
  429.  
  430. 3.3. No Kermit Server
  431.  
  432. If both Telnet client and IKS send WONT KERMIT or SB KERMIT STOP-SERVER,
  433. or if the Kermit client and server are connected across multiple hosts
  434. or transports, thus precluding end-to-end Telnet negotiation, a Kermit
  435. server is not known to be available.  In the KERMIT STOP-SERVER case,
  436. the Kermit partners can later switch back to SKS or CKS, but in the
  437. other two cases, there is no such signaling and loose coupling
  438. characterizes the entire session.
  439.  
  440. In the No Kermit Server (NKS) configuration, the IKS presents a command
  441. prompt to the Telnet client.  As in the Client-Side Kermit Server
  442. configuration, plain-text commands are issued to the IKS.
  443.  
  444. In the loosely coupled NKS configuration, the Telnet client does not
  445. know the state of the Telnet server, and so can not automatically adjust
  446. its commands and menus to present only valid choices, or automatically
  447. change its state to complement the server's; it is the user's
  448. responsibility to assure that the "mode" (command prompt, terminal
  449. emulation, server command wait) of each Kermit partner is appropriate
  450. for each action.  Thus an Internet Kermit Server appears as an ordinary
  451. remote Kermit program to any Telnet client that does not implement the
  452. Telnet Kermit Option, or in which this feature is disabled or can not be
  453. used.
  454.  
  455. The NKS configuration allows successful manual operation of the IKS
  456. through Telnet clients that do not support the Telnet Kermit Option.
  457. The Telnet client might or might not support Kermit "autodownload" and
  458. "autoupload"; if it does not, then the user is forced to manually issue
  459. command on both sides of the connection in the traditional and familiar 
  460. manner [CKB,CMG,K95].
  461.  
  462. 4. SECURITY CONSIDERATIONS
  463.  
  464. 4.1. AUTHENTICATION
  465.  
  466. Authentication is provided via one or more of the following methods:
  467.  
  468.  . The Telnet AUTHENTICATION option;
  469.  
  470.  . The Telnet START_TLS option;
  471.  
  472.  . Plaintext userid/password verification.
  473.  
  474. 4.1.1. Telnet Authentication option
  475.  
  476. The use of one of the many Telnet authentication option methods removes 
  477. the need to transmit passwords in plaintext across public networks.  In
  478. addition, the exchange of user authentication information often provides
  479. a shared secret that can be used with the Telnet Encryption Option 
  480. protocols to encrypt the connection in one or both directions.
  481.  
  482. Telnet authentication may also be used in conjunction with the Telnet
  483. START_TLS option to negotiate end user identity over the encrypted and
  484. host authenticated TLS channel.
  485.  
  486. The IKS currently supports Kerberos 4, Kerberos 5, Secure Remote Password
  487. and Microsoft NTLM authentication methods via the Telnet AUTH option.
  488.  
  489. 4.1.2. Telnet over TLS option
  490.  
  491. The Telnet START_TLS option provides for the negotiation and establishment
  492. of a TLS version 1 session after the initial telnet connection.  The TLS
  493. connection provides host to client authentication via the use and X.509
  494. certificate chains.  TLS also supports optional client to host
  495. authentication using host verified X.509 certificates which may be used
  496. to authenticate a userid provided by the client or be mapped to a userid
  497. based upon properties of the certificate.
  498.  
  499. 4.1.3. Plaintext Authentication via Kermit REMOTE LOGIN
  500.  
  501. In the Server-Side Kermit Server configuration, if the client is not yet
  502. authenticated, the client must log in using a REMOTE LOGIN command, in
  503. which a Kermit packet containing user ID and password in clear text is
  504. sent from the Telnet client to the Telnet server, which then calls upon
  505. local mechanisms to authenticate the user.  Any packets other than login
  506. (or REMOTE HELP, REMOTE EXIT, FINISH, or BYE) packets are rejected
  507. (returned with an error message) until the user is authenticated.  If
  508. the number of unsuccessful login attempts exceeds the limit, the
  509. connection is closed.  Many Kermit client programs support this login
  510. method already.
  511.  
  512. This method should be avoided whenever possible.  If plaintext passwords
  513. are used, they should only be sent after the Telnet START-TLS option has 
  514. been negotiated. (see 4.2.2)  Otherwise, passwords are open to packet
  515. sniffing.
  516.  
  517. 4.1.4. Plaintext Authentication via Command Prompt
  518.  
  519. In the Client-Side Kermit Server and No Kermit Server configurations,
  520. the server presents the user with a plain-text interactive interface
  521. that begins with the server issuing "Username:" and "Password:" prompts,
  522. just as if the user were logging in to a multiuser timesharing system
  523. such as VMS or UNIX.  When a password is not required an empty response
  524. can be given.  Invalid username-password combinations result in a new
  525. series of prompts up to the login retry limit, and then disconnection.
  526.  
  527. This method should be avoided whenever possible.  If plaintext passwords
  528. are used, they should only be sent after the Telnet START-TLS option has 
  529. been negotiated. (see 4.2.2)  Otherwise, passwords are open to packet
  530. sniffing.
  531.  
  532. 4.1.5. Anonymous Login
  533.  
  534. When the username is "anonymous" or "ftp", the IKS behaves like an
  535. anonymous ftp server, in a manner appropriate to the underlying
  536. platform.  In UNIX, for example, access is restricted to a designated
  537. area of the file system.  A password might or might not be required,
  538. according to the preference of the site administrator.
  539.  
  540. If privacy is desired the Telnet START-TLS option should be used.  (see
  541. 4.2.2)
  542.  
  543. 4.2.  ENCRYPTION (PRIVACY)
  544.  
  545. As the Internet becomes ever more public and susceptible to
  546. eavesdropping, it becomes increasingly necessary to provide methods for
  547. private access to services.  Telnet provides two such mechansims:
  548.  
  549.  . Telnet Encryption option
  550.  . Telnet START-TLS option
  551.  
  552. 4.2.1.  Telnet Encryption option
  553.  
  554. The Telnet Encryption option, although it has never achieved RFC status,
  555. has been used for years in conjunction with the Telnet Auth option in
  556. Telnet clients and servers that support Kerberos 4, Kerberos 5, Secure
  557. Remote Password, and others.  The IKS currently supports the following
  558. encryption methods under the Telnet Encryption option:
  559.  
  560.  .  cast128_ofb64   
  561.  .  cast5_40_ofb64  
  562.  .  des_ofb64
  563.  .  cast128_cfb64   
  564.  .  cast5_40_cfb64  
  565.  .  des_cfb64
  566.  
  567. 4.2.2. Telnet over TLS option
  568.  
  569. Transport Layer Security (TLS), the successor to Secure Sockets Layer (SSL),
  570. provides methods to implement Server authentication, Client authentication,
  571. and Transport Layer encryption.  Unlike Telnet Encryption, Start-TLS does
  572. require the use of Telnet Authentication in order to provide a private
  573. channel.  This means that it can be used in conjunction with plaintext 
  574. passwords and anonymous connections.  
  575.  
  576. 5. SERVICES
  577.  
  578. The Internet Kermit Service includes features for both users and system
  579. administrators.  The IKS is incorporated into  the 7.0 release of
  580. Columbia University's C-Kermit software, which is the "master" Kermit
  581. software program in terms of features and command language.  An overview
  582. of C-Kermit can be found at:
  583.  
  584.   http://www.columbia.edu/kermit/ckermit.html
  585.   http://www.kermit-project.org/ckermit.html
  586.  
  587. When C-Kermit is employed as an Internet Kermit Service, it may offer
  588. all its functions to "real" users (those who are authenticated as
  589. specific users), and a safe subset of its functions to anonymous users.
  590.  
  591. The Internet Kermit Service resembles an FTP server in that it performs
  592. its own authentication and uses a well-defined protocol to communicate
  593. with its client, but differs from the FTP server by also offering (at
  594. the system manager's discretion) an interactive user interface to the
  595. Telnet client when it is in terminal mode.  It also differs from FTP in
  596. restricting all protocol messages and data transfer to a single socket
  597. connection.
  598.  
  599. An IKS has been deployed at Columbia University for worldwide public access
  600. to the Kermit FTP site:
  601.  
  602.   telnet://kermit.columbia.edu:1649/
  603.   telnet://ftp.kermit-project.org:1649/
  604.  
  605. 5.1. Features for System Administrators
  606.  
  607. The system administrator can supply IKS configuration parameters as
  608. command-line options or in a configuration file, or both in combination.
  609. Such parameters include:
  610.  
  611.  . Whether anonymous logins are allowed.
  612.  
  613.  . The file system or root directory to which anonymous users are
  614.    restricted.
  615.  
  616.  . Specification of permissions and other attributes to be assigned to
  617.    files uploaded by anonymous users.
  618.  
  619.  . Whether to make session entries in system logs.
  620.  
  621.  . Specific services to disable: reception of files, sending of files,
  622.    sending of email, printing, changing of directories, getting
  623.    directory listings, deleting files, etc (see next section).
  624.  
  625.  . Whether access to the interactive command prompt is allowed.
  626.  
  627. 5.2. Features for Users
  628.  
  629. The IKS supports a wide range of services, including, but not limited
  630. to, the following:
  631.  
  632.  . Authentication as a real user or anonymously.
  633.  
  634.  . Transmission of files to which read access is allowed.
  635.  
  636.  . Reception of files into directories or devices to which write access
  637.    is allowed.
  638.  
  639.  . The ability to display a file on the client's screen.
  640.  
  641.  . Ability to list files.
  642.  
  643.  . Ability to change its working (default) directory.
  644.  
  645.  . Ability to delete files to which write or delete access is allowed.
  646.  
  647.  . Ability to rename and copy files
  648.  
  649.  . Ability to create and remove directories.
  650.  
  651.  . The ability to route received files to a specified printer, or to
  652.    send them as email to a specified address list.
  653.  
  654.  . Client control of server parameter settings, within limits
  655.    established by the server system administrator.
  656.  
  657.  . Transmission of variables from client to server or vice versa.
  658.  
  659.  . Remote and local script execution.
  660.  
  661.  . Remote and local procedure execution.
  662.  
  663. File transfer features include:
  664.  
  665.  . Kermit text-mode transfers incorporate not only record-format
  666.    conversion, but also character-set translation;
  667.  
  668.  . Kermit can switch automatically between text and binary mode on a
  669.    per-file basis when sending groups of files by matching each file's
  670.    name with a pattern list.
  671.  
  672.  . A selection of file collision options, including "make backup copy
  673.    of existing file and accept incoming file", "reject incoming file",
  674.    "accept incoming file only if newer than existing file", etc.
  675.  
  676.  . Numerous methods for selecting the files to be transferred, including
  677.    pattern matching, lists of filenames (or patterns), exception lists,
  678.    date and/or size ranges, etc.
  679.  
  680.  . Filename conversion and file renaming.
  681.  
  682.  . Automatic directory creation if elected and enabled.
  683.  
  684.  . Standard mechanisms for directory traversal, allowing transmission of
  685.    entire directory trees or other file hierarchies even between unlike
  686.    file systems such as VMS, UNIX, and Windows.
  687.  
  688.  . Atomic file movement: optionally, the source file can be deleted
  689.    (or renamed, or moved) when and only when it has been transferred
  690.    successfully.
  691.  
  692.  . Kermit can retain file attributes including time stamps and
  693.    permissions (at the user's or system administrator's discretion),
  694.    even between unlike platforms;
  695.  
  696.  . Recovery of interrupted transfers from the point of failure.
  697.  
  698.  . File-transfer pipes and filters.
  699.  
  700. Script programming features include:
  701.  
  702.  . Macros with parameter substitution.
  703.  
  704.  . Built-in and user-defined variables and arrays, with global
  705.    or local scope.
  706.  
  707.  . Built-in and user-defined functions.  Built-in functions include:
  708.     - String functions
  709.     - Arithmetic functions
  710.     - Date / time functions
  711.     - File functions
  712.  
  713.  . Input search for multiple simultaneous targets.
  714.  
  715.  . IF-ELSE, WHILE, FOR, SWITCH, GOTO, C-like block structure.
  716.  
  717.  . Every command returns a completion status that may be tested
  718.    and used as a basis for subsequent actions.
  719.  
  720. 5.3. User Interface
  721.  
  722. The Internet Kermit Service uses the Kermit command and script language,
  723. as implemented in Columbia University's C-Kermit communication software
  724. [CKB].  This program and its command language are portable to all known
  725. varieties of UNIX, as well as to Windows 95/98/NT, OS/2, Digital
  726. (Open)VMS, Stratus VOS, Data General AOS/VS, Plan 9, OS-9, QNX, the
  727. Commodore Amiga, and other platforms.  The C-Kermit command language is
  728. a superset of that of other Kermit software programs including MS-DOS
  729. Kermit for DOS and Windows 3.x, IBM Mainframe Kermit for VM/CMS,
  730. MVS/TSO, CICS, and MUSIC, PDP-11 Kermit for RT-11, RSTS/E, RSX-11, and
  731. IAS, and dozens of other Kermit programs.
  732.  
  733. It is far beyond the scope of this document to enumerate, let alone
  734. describe, the commands and services of C-Kermit; this is the subject of
  735. a 600-page book [CKB], augmented by hundreds of pages of online
  736. material.  A brief overview is included here.
  737.  
  738. Commands are based on English words.  There is no plan at present to
  739. support other natural languages (Italian, Portuguese, Norwegian,
  740. Russian, Hebrew, Japanese, Cherokee, etc) as alternative bases for
  741. command words, since this would reduce the portability of scripts.
  742. However, since the command language includes a macro capability, macros
  743. may be defined to provide selected commands in different languages if
  744. desired.
  745.  
  746. Certain commands can apply either locally or remotely, for example "CD"
  747. (Change Directory).  The convention is to prefix the command with the
  748. word REMOTE if it is to apply remotely.  Example: "cd foo" changes to
  749. the "foo" directory on the computer where the command was given; "remote
  750. cd foo" sends a Kermit packet to the Kermit server requesting it to
  751. change its directory to "foo".  The commands in this category include:
  752.  
  753.   ASSIGN <variable> <value>      Assign a value to a variable.
  754.   CD <directory>                 Change working directory.
  755.   COPY <files> <destination>     Copy file(s)
  756.   DELETE <files>                 Delete file(s)
  757.   DIRECTORY [ <pattern> ]        List file(s)
  758.   EXIT                           Exit
  759.   HELP [ <topic-or-command> ]    Display help text
  760.   MKDIR <directory>              Create a directory
  761.   PRINT <files>                  Print file(s)
  762.   PWD                            Print working directory
  763.   RENAME <old> <new>             Rename file(s)
  764.   RMDIR <directory>              Remove a directory
  765.   SET <parameter> <value>        Change a parameter's value
  766.   TYPE <file>                    Display the contents of a file
  767.  
  768. As a convenience, REMOTE commands also have short synonyms: RASSIGN,
  769. RCD, RCOPY, RDELETE, and so forth.
  770.  
  771. The basic file transfer commands are:
  772.  
  773.   SEND [ modifiers ] <files>    Send file(s) (to server)
  774.   GET [ modifiers ] <files>     Get file(s) (from server)
  775.  
  776. These commands take a file name, pattern, or list, plus various optional
  777. modifiers, including transfer mode specifiers (text, binary), file
  778. selectors (date, size, exception list), aliasing, name and path options,
  779. disposition specifiers, and so on.
  780.  
  781. In addition to the commands listed above, the following commands are
  782. sent by the client to the server:
  783.  
  784.   REMOTE QUERY                   Get value of variable or procedure
  785.   BYE                            Log out and close the connection
  786.   FINISH                         Request the server leave server mode
  787.  
  788. Like all Kermit client/server commands, these can be disabled if
  789. desired.
  790.  
  791. Of course there are numerous other commands with purely local effect,
  792. such as the many scripting commands.  These, plus all the commands
  793. above, are fully documented in [CKB].  The repertoire grows over time,
  794. but never in a way that invalidates existing scripts.
  795.  
  796. The system administrator can allow or forbid access to any of these
  797. features, and to the command language as a whole.  In the latter case,
  798. the IKS may be accessed only as a Kermit server, by giving commands to
  799. the client.
  800.  
  801.  
  802. 6. REFERENCES
  803.  
  804. [TKO] Altman, Jeffrey E., and Frank da Cruz,
  805.       Telnet Kermit Option,
  806.       Internet Draft <draft-altman-telnet-kermit-server-00.txt>,
  807.       August 1998.
  808.  
  809. [BCP] Bradner, Scott, RFC 2119, "Best Current Practice", March 1997.
  810.  
  811. [KER] da Cruz, Frank, "Kermit, A File Transfer Protocol", Digital Press/
  812.       Butterworth Heinemann, Newton, MA (1987).  379 pages,
  813.       ISBN 0-932376-88-6.
  814.  
  815. [CKB] da Cruz, Frank, and Christine M. Gianone, "Using C-Kermit", Second
  816.       Edition, Digital Press / Butterworth-Heinemann, Woburn, MA (1997).
  817.       622 pages, ISBN 1-55558-164-1.
  818.  
  819. [CMG] Gianone, Christine M., "Using MS-DOS Kermit", Second Edition,
  820.       Digital Press / Butterworth-Heinemann, Woburn, MA (1992). 345
  821.       pages, ISBN 1-55558-082-3.
  822.  
  823. [K95] Gianone, Christine M., and Frank da Cruz, "Kermit 95", Manning
  824.       Publications, Greenwich CT, (1996). 88 pages, ISBN 1-884777-14-7.
  825.  
  826. [PRF] Huggins, James K., "Kermit Protocol - Formal Specification and
  827.       Verification", in Boerger, E., "Specification and Validation
  828.       Methods", Oxford University Press (1995).  ISBN 0-19-853854-5.
  829.  
  830. [FTP] Postel, J., and J. Reynolds, "File Transfer Protocol (FTP)",
  831.       RFC959, October 1985.
  832.  
  833. [TEL] Postel, J., and J. Reynolds, "Telnet Protocol Specification",
  834.       RFC854, May 1983, et seq.; "Telnet Option Specification",
  835.       RFC855, May 1983, et seq.
  836.  
  837. [IAN] Internet Assigned Numbers Authority:
  838.       http://www.iana.org/numbers.html
  839.       http://www.iana.org/assignment/port-numbers
  840.  
  841.  
  842. 7. AUTHORS' ADDRESS
  843.  
  844. Frank da Cruz
  845. fdc@columbia.edu
  846.  
  847. Jeffrey E. Altman
  848. jaltman@columbia.edu
  849.  
  850. The Kermit Project
  851. Columbia University
  852. 612 West 115th Street
  853. New York NY 10025-7799
  854. USA
  855. http://www.columbia.edu/kermit/
  856. http://www.kermit-project.org/
  857.  
  858. (end)
  859.