Files
backy/tests/docker
CyberShell e789924547
ci/woodpecker/push/go-lint Pipeline failed
ci/woodpecker/push/publish-docs Pipeline failed
fix error hooks and add listing everything
2026-08-15 00:16:05 -05:00
..
2026-01-31 01:06:18 -06:00
2026-01-31 01:06:18 -06:00
2026-01-31 01:06:18 -06:00
2026-01-31 01:06:18 -06:00

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: backy with password backy (password auth enabled)
  • Root user: root with password test
  • Public key backytest.pub is installed for both backy and root

Running tests

  1. Start the container (./start.sh).
  2. 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.