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

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