Description

SushMock is a simple standalone testing tool for stubbing and mocking an SSH server. (Secure Shell)
Because it is a standalone tool, there is no need to rewrite your ssh client for the connectivity testing.
This tool consists of two functions, "Record" and "Simulate".

Key Features

Installation

  1. Prepare Java 1.8
  2. Download SushMock
  3. Run the included gradle script, and build the tool
    • For Windows, run gradlew.bat
    • For Linux, run gradlew
  4. Execute SushMock.jar
  5. Connect your SSH client to SushMock server

Show Help

java -jar SushMock.jar -h
usage: SushMockServer [options]
[options]
    --buffer-size <size>     set the history buffer size [10485760]
    --data <data-dir>        set the mock data directory [data]
    --extensions <classes>   set the extension class names
                             [com.github.AsaiYusuke.SushMock.ext.defaultEx
                             t.DateMaskCompareTransformer]
 -h,--help                   display this help
    --key <key-dirs>         set the ssh key directories
                             [c:\some\where\ssh-key-dir]
    --listen-port <port>     set the listen port number [22]
    --mode <mode>            set the execution mode [SERVER]
    --remote-host <host>     set the remote server hostname or ip address
                             [192.168.1.1]
    --remote-port <port>     set the remote server port number [22]

Record Mode

java -jar SushMock.jar --mode RECORD --listen-port 22 --remote-host 192.168.1.1 --remote-port 22

Simulate Mode

java -jar SushMock.jar --mode SERVER --listen-port 22

Required libraries

SushMock required next libraries. (SushMock.jar contains all.)

Issues

License

Apache License Version 2.0