ipster is a CLI application that stores IP addresses and their associated details in the terminal for quick access. It allows you to easily add, list, remove, and generate SSH commands for saved IP addresses.
To install IPster, you can use go install
. Make sure you have Go installed on your system before proceeding with the installation.
go install github.com/charlesdevelops/ipster@latest
The basic usage of ipster is as follows:
ipster [command]
add
: Add an IP addresscompletion
: Generate the autocompletion script for the specified shellhelp
: Help about any commandls
: List all saved addressesrm
: Remove entries from the applicationssh
: Generates an SSH command to a saved IP address
You can use the --help
flag with any command to get more information about it. For example:
ipster add --help
-
Add an IP address:
ipster add <IP address> -d <description> -k <key location>
-
List all saved addresses:
ipster ls
-
Remove entries from the application:
ipster rm <entry id>
-
Generate an SSH command for a saved IP address:
ipster ssh <entry id>
We can add an address and connect to it as such:
Note that the pictured server, IP address, key, and all related details in these screenshots were deleted and / or decommissioned as appropriate.
ipster depends on the following libraries:
sqlite3
cobra
by spf13 (the framework used to build the CLI app)github.com/atotto/clipboard
(for copying strings to the clipboard from the SSH command)modernc.org/sqlite
(for the non-cgo SQLite3 driver)
ipster was written in Go. Many thanks to the following projects and their contributors for their work:
This project is licensed under the Apache License Version 2.0.
Thank you for using ipster! If you encounter any issues or have suggestions for improvements, please open an issue on the GitHub repository.