Sign inSign up

phd59fr/gobastion

By phd59fr

•Updated 4 days ago

goBastion is a tool for managing SSH and DB access, user roles, and keys on a bastion host

Image
Networking
Security
Monitoring & observability
0

10.0K

phd59fr/gobastion repository overview

ā šŸš€ goBastion

goBastion is a modern SSH bastion for centralized, secure, and automated access management.

It manages:

  • SSH access
  • database access
  • users and groups
  • MFA and login security
  • session recording

šŸ‘‰ Full documentation, examples, command reference, and advanced setups:
āž”ļø https://github.com/phd59fr/goBastion⁠

šŸ‘‰ Docker Hub: https://hub.docker.com/r/phd59fr/gobastion⁠


ā āš ļø Important

This page is only a quick start.

For:

  • SSH configuration examples
  • MFA setup
  • self-service and admin commands
  • group permissions
  • database access usage
  • production deployment guidance

go to the GitHub README: https://github.com/phd59fr/goBastion⁠


⁠🐳 Quick Start

⁠1. Run the default image
docker run -d \
  --name goBastion \
  -p 2222:22 \
  phd59fr/gobastion:latest

The default image includes:

  • SSH bastion
  • session recording
  • built-in DB clients: mysql, postgres, redis

The default image does not include Mosh support.

⁠2. Optional: run the full image with Mosh support
docker run -d \
  --name goBastion \
  -p 2222:22 \
  phd59fr/gobastion:full
⁠3. Initialize the first admin user
docker exec -it goBastion /app/goBastion --firstInstall

This step is required before first use.

⁠4. Connect
ssh -tp 2222 user@localhost --

ā šŸ”‘ Core Principle

The database is the source of truth.

goBastion continuously enforces the state stored in the database:

  • users
  • keys
  • accesses
  • permissions

This gives:

  • centralized control
  • deterministic state
  • automatic cleanup of drift

⁠✨ Included Features

  • centralized SSH access management
  • self-service for users
  • admin account management
  • group-based RBAC
  • MFA and login security
  • YubiKey / PIV support
  • SCP / SFTP / rsync passthrough
  • database access management
  • session recording

Optional depending on image:

  • Mosh support (:full)

ā šŸ—„ļø Container Notes

  • built-in DB client support: mysql, postgres, redis
  • MongoDB client support is not packaged in the container
  • the default image is smaller and excludes mosh-server
  • the :full image includes Mosh support

ā šŸ“š Need More?

Use the GitHub README for:

  • full command reference
  • bastion usage examples
  • SSH / ProxyCommand examples
  • SCP / SFTP / rsync usage
  • MFA / TOTP / PIV setup
  • group and guest access workflows
  • database configuration
  • Docker and production deployment details

āž”ļø GitHub: https://github.com/phd59fr/goBastion⁠


ā šŸ“„ License

MIT License

Tag summary

Content type

Image

Digest

sha256:10ab44ffe…

Size

27.6 MB

Last updated

5 days ago

docker pull phd59fr/gobastion