Home

Awesome

cmc

ControlMaster Controller - Eases management of SSH ControlMaster connections

Overview

cmc makes SSH ControlMaster sessions easy. SSH ControlMaster sessions have the following benefits:

Script Help

Usage:  cmc [ -c HOST | -x HOST ]
        cmc [ -l | -X ]
        cmc -h

ControlMaster Controller - Eases management of SSH ControlMaster connections

Options:
    -h      show this help message and exit
    -c HOST check HOST ControlMaster connection status (may be specified more
            than once)
    -d      print debug information
    -l      list all active ControlMaster connection sockets
    -x HOST exit ControlMaster session (may be specified more than once)
    -X      exit all ControlMaster connections with sockets

Notes:
    - Any unused sockets in ControlPath are removed with -l and -X

(output of cmc -h)

Install

  1. Install Homebrew -- The missing package manager for macOS
  2. Add the "tap":
    brew tap TimidRobot/tap
    
  3. Install cmc:
    brew install cmc
    

Alternatively, since cmc is a bash script without esoteric dependencies, you can simply download it and ensure it is in your PATH.

If this utility is helpful for you, please star this project so that it can eventually be included in Homebrew proper. Thank you!

Documentation

ControlPersist

Prior to the addition of ControlPersist in OpenSSH 5.6, this utility was needed. However it still convenient to be able to quickly manage ControlMaster connections.

For more information on ControlPersist see ssh_config(5).

Workflow

See docs/workflow.

Annotated SSH Configuration

See docs/annotated_config.

Related

Requirements

Development

Run ./test_cmc ${TESTHOST} prior to signing a new release.

Thank you:

License