A set of CLI utilities for managing LDAP authentication, VPN connections, and 2FA for the University of the Basque Country (UPV/EHU).
- 🔑 LDAP Authentication: Store and use your EHU credentials securely.
- 🛡 2FA Support: Generate time-based one-time passwords (TOTP) using
oathtool. - 🌍 VPN Management: Connect and disconnect from the EHU VPN using Fortinet protocol.
- 📡 SSH Management: Save and manage SSH server connections.
- ⚙️ Interactive Menu: Simple text-based UI for easy configuration.
bashoathtool(for 2FA support)openconnect(for VPN connections - requires root privileges)
Run the following command to download and install EHU Tools:
curl -sSL https://raw.githubusercontent.com/KingJorjai/ehu-tools/main/install.sh | bashAlternatively, you can clone the repository and install manually:
git clone https://github.com/KingJorjai/ehu-tools.git
cd ehu-tools
bash install.shAfter installation, simply run:
ehu-toolsThe tool provides an interactive menu with the following options:
- Connect to VPN - Establish VPN connection using openconnect
- Disconnect from VPN - Terminate VPN connection
- Manage SSH Servers - Add, remove, or connect to saved SSH servers
- Set LDAP credentials - Configure your EHU username and password
- Set 2FA secret - Configure your TOTP secret for 2FA
- Credentials are stored locally in
~/.config/ehu-tools/ - All sensitive data is handled securely and cleared from memory after use
- VPN connections require root privileges due to openconnect requirements
Feel free to open issues and submit pull requests to improve this tool!