Discover Packages
github.com/Ahngbeom/datavase
internal
testssh
package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: Aug 3, 2026
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package testssh runs an in-process SSH server for tests.
It honours direct-tcpip channels, which is the mechanism an SSH port
forward actually uses, so tests can prove a tunnel moves bytes rather than
merely that it dials.
Echo starts a TCP echo server standing in for a remote service.
Signer returns a fresh SSH key for tests.
Server is a running test SSH server.
Start launches a server that forwards direct-tcpip channels.
StartRejecting launches a server that refuses every forwarding attempt,
for exercising the failure path.
Bastion describes this server as a datasource tunnel configuration.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.