TOOL / SCRIPT
SERVAULT: Secure Server Access Manager
stableStable: This tool is production-ready, well-tested, and actively maintained. It's been battle-tested across multiple projects and is ready for serious use. Found a bug or have suggestions? Open an issue on GitHub.
Multi-user server login manager with 1Password and Bitwarden integration for secure team server connections across environments. Eliminates password juggling and provides encrypted credential management.
time Saved
95%
environments
4+
users
Multi-user
What It Does
SERVAULT is a secure server access manager that integrates with 1Password and Bitwarden to handle team server connections across multiple environments. It provides multi-user support, automatic SSH tunneling for database access, and eliminates the need to remember or manually type server credentials. Think of it as your team's secure gateway to all server environments.
The Problem
As a QA engineer working across UAT, staging, and production environments, I was constantly juggling server credentials, manually typing complex passwords, and switching between different user accounts. Keeping spreadsheets of server IPs and passwords was insecure, and accidentally connecting to the wrong environment was a constant risk. The team needed a secure, standardized way to access servers without compromising security or productivity.
The Solution
SERVAULT centralizes all server access through encrypted password managers, providing one-command connections to any environment. It integrates with 1Password and Bitwarden for secure credential storage, supports multiple users per environment, and includes automatic database tunneling. Now the entire team can access servers securely without remembering passwords or risking credential exposure.
Key Features
Dual password manager support (1Password and Bitwarden)
Multi-user architecture with separate vault items per user
Multi-environment support (UAT, production, staging, dev)
Automatic SSH tunneling for PostgreSQL database access
Interactive setup with guided configuration
Auto-detection and installation of missing dependencies
Dry-run mode for previewing connections without connecting
Fast mode for automation and quick access
User management with easy listing per environment
Secure credential storage with no hardcoded passwords
Host key management and SSH automation
Comprehensive error handling and troubleshooting guides
Usage Examples
Help Output (servault -h)
Complete help output showing professional CLI design and all available options
╔═══════════════════════════════════════════════════════════════════════╗
║ ║
║ ███████╗███████╗██████╗ ██╗ ██╗ █████╗ ██╗ ██╗ ██╗ ████████╗ ║
║ ██╔════╝██╔════╝██╔══██╗ ██║ ██║ ██╔══██╗██║ ██║ ██║ ╚══██╔══╝ ║
║ ███████╗█████╗ ██████╔╝ ██║ ██║ ███████║██║ ██║ ██║ ██║ ║
║ ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝ ██╔══██║██║ ██║ ██║ ██║ ║
║ ███████║███████╗██║ ██║ ╚████╔╝ ██║ ██║╚██████╔╝███████╗ ██║ ║
║ ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ ╚═╝ ║
║ ║
║ 🔐 Secure Server Access Manager v1.0.0 🔐 ║
║ ║
╚═══════════════════════════════════════════════════════════════════════╝
Enhanced server login manager with multi-user 1Password integration
Connect to servers with user-specific credentials and vault support
USAGE:
./scripts/servault/servault.sh <environment> [options]
ENVIRONMENTS:
uat Connect to UAT server
prod Connect to production server
staging Connect to staging server
dev Connect to development server
OPTIONS:
--user <name> Use specific user credentials (e.g., alex, sarah)
db Connect to database after server login
main Use main user credentials
main db Use main user and connect to database
-h, --help Show this help message
-v, --version Show version information
--dry-run Show connection details without connecting
--config Show current configuration and 1Password item names
--setup Interactive configuration setup (change project prefix, etc.)
--list-users Show available users for an environment
--fast Fast mode (skip banner and extra output)
--password-manager <pm> Override password manager (1password, bitwarden, op, bw)
MULTI-USER SUPPORT:
Configure multiple users per environment using --setup
Each user can have their own password manager vault item
Use --user <name> to specify which user credentials to use
PASSWORD MANAGER SUPPORT:
Supports both 1Password and Bitwarden
Auto-detects available password managers
Use --password-manager to override saved preferenceBasic Server Connections
Basic environment and user switching examples
# Connect to different environments
./servault.sh uat # UAT server (default user)
./servault.sh prod # Production server
./servault.sh staging # Staging server
# Multi-user connections
./servault.sh uat --user alex # Alex's UAT access
./servault.sh prod --user sarah # Sarah's production access
./servault.sh uat --user admin main # Admin with main credentialsDatabase & Advanced Operations
Advanced features including database access and configuration management
# Database connections with SSH tunneling
./servault.sh uat db # UAT database access
./servault.sh prod --user sarah db # Sarah's prod database access
./servault.sh uat --user admin main db # Admin main + database
# Configuration and management
./servault.sh --setup # Interactive setup
./servault.sh uat --list-users # Show available users
./servault.sh uat --dry-run # Preview connection
./servault.sh --config # Show current config
# Password manager override
./servault.sh uat --password-manager bitwardenWhat's Next
Features I'm thinking about adding slowly:
SSH key-based authentication support for enhanced security
Multi-cloud provider integration (AWS, GCP, Azure)
Kubernetes cluster access management
Audit logging and access tracking
Team permission management and role-based access
Integration with other automas tools for complete DevOps workflow
Mobile app for emergency server access
License - MIT
© 2026 Shamlo Ameer
This tool is open source and free to use. You're welcome to use, modify, and distribute it for any purpose, including commercial projects. Attribution is appreciated but not required.
✓ You can:
- •Use for personal or commercial projects
- •Modify and adapt to your needs
- •Distribute and share freely
- •Include in your own projects
ℹ️ Please note:
- •Provided "as is" without warranty
- •Attribution appreciated but optional
- •No liability for any damages
Questions or feedback? zothstic@gmail.com