SSH test container
This folder contains a simple Docker-based SSH server used for integration tests.
Quick start
Start the container (builds image if needed):
./start.sh
Stop the container:
./stop.sh
Access
- SSH endpoint:
localhost:2222 - Test user:
backywith passwordbacky(password auth enabled) - Root user:
rootwith passwordtest - Public key
backytest.pubis installed for bothbackyandroot
Running tests
- Start the container (
./start.sh). - From the repo root, run your tests (example):
GO_TEST_SSH_ADDR=localhost:2222 go test ./... -v
If your tests rely on an SSH private key, use tests/docker/backytest as the private key and restrict access appropriately.