ruckus-mock-ssh

command module
v0.0.0-...-a4993c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 4 Imported by: 0

README

Ruckus Mock SSH Server

Mock SSH server written in Go that mocks a subset of Ruckus SSH commands and responses. Used for testing of gabe565/pyruckus without a physical device.

Quick Start

Install
go install github.com/gabe565/ruckus-mock-ssh@latest
Run

You can run the mock SSH server with the default configuration with:

ruckus-mock-ssh

To see the available flags, run

ruckus-mock-ssh --help
Connect via SSH

After running the server, connect to it with the following SSH command:

ssh localhost -p 2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
Shell Completions

Simple shell completions are set up for command discovery. Once you connect via SSH, press the Tab key to see available commands.

Development

Adding new command responses

Response mocks are hardcoded text files in cli/responses. To add a new response, add a text file with the command name replaced with underscores. For example, the response for show config is in cli/responses/show_config.txt.

Command line reference requires a Ruckus account, but is available for free after registration. The command line reference for Ruckus Unleashed 200.11 can be found here.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cli

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL