The goal of ssh-manage
is to be a simple tool to help manage user configuration
files for SSH. The host configurations are internally managed in a bbolt
database and can be written out to the configuration used by ssh
.
ssh-manage
requires Go 1.17 or higher, and can be installed via go install
:
# Install a specific version.
go install git.sr.ht/~vendion/ssh-manage@v0.3.0
# Install the highest available version.
go install git.sr.ht/~vendion/ssh-manage@latest
ssh-manage
can be cloned and built locally with the following:
git clone https://git.sr.ht/~vendion/ssh-manage
cd ssh-mangae
make build
ssh-manage
is designed to work out of the box making sane defaults. These
defaults can be changed by setting environment variables which can be
manually set or ssh-manage
can load them on start up.
To have ssh-manage
load these environment variables, first create
~/.config/ssh-manage/ssh-manage.env and add the values to that file.
Here is a example file:
SSH-PORT=2222
This tells ssh-manage
to use port 2222 as the default SSH port.
ssh-manage add
ssh-manage get example
ssh-manage list
ssh-manage rm example
ssh-manage write
ssh-manage update
ssh-manage import
ssh-manage
is licensed under the BSD 3-Clause "New" or "Revised" License.