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@latestYou can run the mock SSH server with the default configuration with:
ruckus-mock-sshTo see the available flags, run
ruckus-mock-ssh --helpAfter running the server, connect to it with the following SSH command:
ssh localhost -p 2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/nullSimple 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.