igorsgm/ssh-vault

🗝️ • Lightweight utility for easy SSH management. Add, list, access and remove connections with simple commands, keeping your SSH config organized.

v1.2.0 2023-11-14 11:11 UTC

This package is auto-updated.

Last update: 2024-04-14 12:17:16 UTC


README

Manage SSH connections effortlessly with SSH Vault, a lightweight user-friendly tool for adding, listing, accessing, and removing SSH connections. Replace cumbersome bash aliases and notes with this efficient utility for organized SSH config management.

Latest Version on Packagist Build Status Test Coverage Code Quality Total Downloads

SSH Vault usage sample with available commands

✨ Features

It just parses and modifies ~/.ssh/config file. You can continue to use tools that you like and just use this wrapper to add or remove connections from your ssh config file.

  • List Hosts: View SSH/config file contents in various formats.
  • Add New Host: Simplify adding new SSH connections.
  • Remove Host: Keep your SSH config file clean by removing connections.
  • Add Connection: Effortlessly establish new SSH connections, enhancing your SSH management workflow.

1️⃣ Installation

  • You can install the package via composer:
composer global require igorsgm/ssh-vault

2️⃣ Usage

📋 Display all SSH connections in a list format:

Detailed list format for easy SSH host overview.

ssh-vault hosts:list

🧮 Display all SSH connections in a table format:

Comprehensive table layout for SSH connection details.

ssh-vault hosts:table

SSH Vault hosts list and table

📄 Display all SSH connections in a raw format:

Unfiltered view of SSH configurations for in-depth review.

ssh-vault hosts:raw

SSH Vault raw ssh config

🔗 Add a new SSH connection to your config file

Interactive inputs for quick SSH connection setup.

ssh-vault hosts:add

SSH Vault add new connection

🚮 Remove SSH connection from config file

Interactive multi-select menu for removing SSH connections.

ssh-vault hosts:remove

🌐 SSH to a specific host from your config file

Streamlined SSH connection to chosen hosts with detailed options.

ssh-vault hosts:connect

SSH Vault remove and connect hosts

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.