Cross-Platform Command Line Interface for editing ssh config file.
-
You can download the binary file from release page
-
Unzip the file (
ssh-conf-cli_linux_amd64_<versions>.zip
) and put it in your$PATH
directory as needed.- For linux
$ unzip ssh-conf-cli_linux_amd64.zip -d ~/.local/bin
- For Windows
Unzip the file (
ssh-conf-cli_win_amd64_<versions>.zip
) using your favorite unzip tool and put the filessh-conf-cli.exe
in your$PATH
directory.
- For linux
To get the version:
$ ssh-conf-cli version
To Edit value of any targeted-host:
$ ssh-conf-cli edit -T [target-pattern] <subcommand>
For example, to edit the value of HostName
configlated for host remote-machine
:
$ ssh-conf-cli edit -T remote-machine hostName -n 0.0.0.0
To make binary file for your platform:
go build -ldflags "-s -w -X github.com/quag-cactus/ssh-conf-cli/cmd.version=<VERSION_STRING>" -trimpath ./...