Sending and Receiving Files with Kermit

From GlassTTY
Revision as of 06:54, 15 December 2018 by John (talk | contribs)
Jump to: navigation, search

Introduction

Kermit is a computer file transfer/management protocol and a set of communications software tools. The tools need to be installed at each end of the link for the protocol to be used.

The article below describes the process for a very simple session to transfer files in either direction between two machines using SSH and Kermit.

Kermit can be installed on Linux machines using the standard package repositories of the Linux distribution. Brew can be used to install Kermit on the Macintosh e.g.

   $ brew install c-kermit

Versions for Windows and most other platforms are available from http://www.kermitproject.org/current.html.

TCP Connection

On the local machine run Kermit, e.g.

   $ kermit

This will return the kermit prompt, e.g.

   C-Kermit 9.0.302 OPEN SOURCE:, 20 Aug 2011, for Mac OS X 10.14 (64-bit)
    Copyright (C) 1985, 2011,
     Trustees of Columbia University in the City of New York.
   Type ? or HELP for help.
   C-Kermit>

At this prompt, make the ssh connection as normal to the remote machine, e.g.

   C-Kermit> ssh 192.168.1.99

Once the remote connection has been made and the command line of the remote machine is made available, run kermit on this remote machine, e.g.

   $ ckermit

This will show a similar response to when kermit was run on the local machine.

   C-Kermit 9.0.302 OPEN SOURCE:, 20 Aug 2011, for Linux (64-bit)
    Copyright (C) 1985, 2011,
     Trustees of Columbia University in the City of New York.
   Type ? or HELP for help.
   C-Kermit>

At this point it is a simple matter of 'switching' back to the local Kermit prompt using Ctrl-/ C (Control + Forward Slash followed by C) and issuing the various commands, e.g.

   C-Kermit> send myfile.txt
   C-Kermit> get yourfile.bin

Once complete close the SSH connection and exit kermit, e.g.

   C-Kermit> close
   C-Kermit> exit