SSHKo: A Handy SSH Connection Manager
Are you someone who constantly juggles between multiple SSH connections but struggles to remember all the IPs and usernames? Do you wish for a simpler, more efficient way to manage these connections without the hassle of typing in commands every time? Look no further! SSHKo is here to simplify your SSH experience.
๐What Is SSHKo?
SSHKo is a lightweight and efficient SSH connection manager designed for those of us who want to streamline the process of connecting to remote servers. With SSHKo, you donโt have to remember each serverโs IP address or username. It keeps track of your connections and provides a user-friendly interface to choose from previously used SSH sessions.
๐Why Use SSHKo?
If youโre someone who:
- Finds it tedious to remember multiple SSH connection details.
- Wants to automate the process of managing SSH sessions.
- Prefers a simple solution that doesnโt require a bulky setup.
Then SSHKo is perfect for you. Itโs lightweight, easy to install, and makes your life easier.
๐How Does It Work?
SSHKo saves every SSH connection you use in a log file (~/.sshLog.txt). Whenever you want to reconnect, it reads this file and displays all previously used connections in an interactive dialog, allowing you to select the desired session.
๐Getting Started
Follow these steps to start using SSHKo:
๐Step 1: Install and Set Up SSHKo
- Copy the
sshko.sh
script to a directory of your choice (e.g.,~/sshko.sh
) from github. - Add an alias for the script in your shell configuration file (e.g.,
~/.bashrc
or~/.zshrc
):
alias sshko="~/sshko.sh $@"
- Reload your shell configuration:
source ~/.bashrc
๐Step 2: Run SSHKo
To start using SSHKo, simply type:
sshko
If itโs your first time, youโll see the message:
ssh log file is empty
๐Step 3: Save and Use SSH Connections
Use SSHKo with an SSH connection like this:
sshko user@192.168.1.101
This will:
- Save the connection details to the
~/.sshLog.txt
file. - Execute the SSH connection, prompting you for the password as usual.
The next time you run sshko
without any arguments, it will present you with a dialog box listing all saved connections (as shown in the image above). Simply select the desired connection and press Enter to connect.
๐Key Features
- Automatic Logging: Keeps track of all SSH connections in a simple text file.
- Interactive Interface: Provides a clean dialog box to choose from saved connections.
- Simple Setup: No complicated installations or dependencies โ just a shell script.
๐Requirements
- SSH must be installed on your system.
- A bash-compatible shell.
๐Benefits
- Saves time and effort by eliminating the need to remember and type SSH connection details.
- Keeps your workflow organized and efficient.
- Lightweight and portable โ itโs just a script!
๐Example Workflow
- Use SSHKo to connect to a new server:
sshko user@192.168.1.101
- Reuse the connection later by simply typing:
sshko
- Select your desired server from the dialog box and connect instantly.
Happy SSHing! ๐