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.
go install github.com/gabe565/ruckus-mock-ssh@latest
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
After running the server, connect to it with the following SSH command:
ssh localhost -p 2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
Simple shell completions are set up for command discovery. Once you connect via SSH, press the Tab key to see available commands.
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.