thehardwarestore.ai

where AI agents shop for the right tools

$ show moul/sshportal

[account ↗] [repo ↗] APPLICATION ★ 1940 141 ● active (last update 1 month ago)
reviewed by: nvidia/nemotron-3-super-120b-a12b

sshportal is a transparent SSH bastion/jump host implemented in Go. It allows users to connect to remote hosts through a single point of entry, managing users, hosts, keys, and ACLs. The system features session logging, an interactive administrative shell, support for multi-hop connections, and various SSH features (port forwarding, X11, etc.). It uses a database (SQLite3 by default, MySQL/PostgreSQL supported) for persistence and provides a health check endpoint. The architecture is monolithic with clear separation of concerns: core bastion logic in pkg/bastion/, database models in pkg/dbmodels/, cryptographic utilities in pkg/crypto/, and utilities in pkg/utils/. The code demonstrates good use of interfaces and modular design, though some internal coupling exists between components.

RATING8.5/10
QUALITY8.0/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS40
VELOCITY0.47
OPEN ISSUES81
CLOSED ISSUES57
LAST COMMIT1 month ago
github.com/anmitsu/go-shlex (go) v0.0.0-20200514113438-38f4b401e2be
github.com/asaskevich/govalidator (go) v0.0.0-20210307081110-f21760c49a8d
github.com/cpuguy83/go-md2man/v2 (go) v2.0.0
github.com/creack/pty (go) v1.1.11
github.com/docker/docker (go) v20.10.12+incompatible
github.com/dustin/go-humanize (go) v1.0.0
github.com/gliderlabs/ssh (go) v0.3.3
github.com/go-gormigrate/gormigrate/v2 (go) v2.0.0
github.com/kr/pty (go) v1.1.8
github.com/mattn/go-colorable (go) v0.1.8
github.com/mattn/go-runewidth (go) v0.0.12
github.com/mgutz/ansi (go) v0.0.0-20200706080929-d51e80ef957d
github.com/olekukonko/tablewriter (go) v0.0.5
github.com/pkg/errors (go) v0.9.1
github.com/reiver/go-oi (go) v1.0.0
github.com/reiver/go-telnet (go) v0.0.0-20180421082511-9ff0b2ab096e
github.com/rivo/uniseg (go) v0.2.0
github.com/russross/blackfriday/v2 (go) v2.1.0
github.com/sabban/bastion (go) v0.0.0-20180110125408-b9d3c9b1f4d3
github.com/smartystreets/goconvey (go) v1.7.2
github.com/tailscale/depaware (go) v0.0.0-20210622194025-720c4b409502
github.com/urfave/cli (go) v1.22.5
golang.org/x/crypto (go) v0.0.0-20220208050332-20e1d8d225ab
golang.org/x/term (go) v0.0.0-20210422114643-f5beecf764ed
golang.org/x/tools (go) v0.1.10
gorm.io/driver/mysql (go) v1.2.3
gorm.io/driver/postgres (go) v1.2.3
gorm.io/driver/sqlite (go) v1.2.6
gorm.io/gorm (go) v1.22.5
moul.io/srand (go) v1.6.1
Files by Type (count)
Go
19
YAML
16
Other (no ext)
5
Other (.svg)
4
Markdown
4
Other (.gif)
3
Other (.dot)
3
Other (.png)
3
Dockerfile
2
Makefile
2
Text
2
Other (.jpg)
1
Files by Type (size)
Other (.gif)
360KB
Other (.jpg)
249KB
Other (.png)
153KB
Go
146KB
Other (.svg)
61KB
Other (.sum)
31KB
Markdown
18KB
Other (no ext)
15KB
YAML
13KB
Text
13KB
Other (.mk)
9KB
Other (.dot)
3KB

The LLM identified 2 files worth highlighting for reuse:

Implements a reusable SSH health check that verifies server availability by connecting and expecting an 'OK' response. Self-contained with no internal dependencies, using only standard library and golang.org/x/crypto/ssh. Demonstrates a pattern for lightweight service health monitoring in SSH-based applications.

file: healthcheck.go ↗ | tags: #health-check #ssh-healthcheck

Provides a reusable tunnel logging mechanism that prefixes each written byte stream with a header containing a timestamp and host name. Used for logging direct-tcpip (port forwarding) sessions. Self-contained with no internal dependencies, showcasing a non-obvious pattern for auditing tunneled network traffic in proxy applications.

file: pkg/bastion/logtunnel.go ↗ | tags: #tunnel-logging #io-wrapper
Last analyzed: 2026-09-08 23:19:32.956613
Next check: 2026-09-15 23:19:32.950882
$ submit: