phd59fr/gobastion

By phd59fr

•Updated about 7 hours ago

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

Image
Networking
Security
Monitoring & observability
0

6.7K

phd59fr/gobastion repository overview

ā šŸš€ goBastion

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

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

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


ā āš ļø Important

šŸ”„ This page is only a quick start. šŸ‘‰ For full documentation, SSH configs, MFA setup, and real-world usage, go to GitHub: https://github.com/phd59fr/goBastion⁠


⁠🐳 Quick Start

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

⁠2. āš ļø Initialize the first admin user (REQUIRED)
docker exec -it goBastion /app/goBastion --firstInstall

ā— This step is mandatory Without it, you cannot log in or use the bastion.


⁠3. Connect
ssh -tp 2222 user@localhost --'

ā šŸ”‘ Core Concept, Database as Source of Truth

The database defines the real state of access, the system only mirrors it.

  • Automatic sync every 5 minutes
  • Unauthorized changes are removed
  • Fully consistent and secure

⁠✨ Key Features

  • šŸ” Centralized SSH access management
  • šŸ‘¤ Self-service (keys, access, aliases, MFA)
  • 🦸 Admin control (users, audit, permissions)
  • šŸ‘„ Group-based RBAC
  • šŸ”‘ MFA (TOTP + password + JIT)
  • šŸ›”ļø YubiKey / PIV support
  • šŸ“” SCP / SFTP / rsync passthrough
  • ā±ļø TTL + IP restrictions
  • 🐚 Mosh support
  • šŸ“œ Session recording

ā šŸš€ Read the Full Documentation

šŸ‘‰ This project is feature-rich, this page is NOT enough.

⁠On GitHub you get:
  • Complete command reference
  • SSH / ProxyCommand examples
  • SCP / SFTP / rsync configuration
  • MFA & security setup
  • YubiKey / PIV guide
  • Database configuration
  • Advanced production setups

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


ā šŸ’” Why goBastion?

  • No SSH key drift
  • No manual cleanup
  • No inconsistencies

šŸ‘‰ Secure, deterministic, production-ready access management


ā šŸ¤ Contributing

See GitHub.


ā šŸ“„ License

MIT License

Tag summary

Content type

Image

Digest

sha256:af9978154…

Size

27.5 MB

Last updated

about 7 hours ago

docker pull phd59fr/gobastion:sha-8ae11f3