A multi-host SSH command line tool written in Go.
GoSSH "command" "command2" "command3"
Clone the repository and change directory:
git clone --depth 1 https://github.com/erictossell/GoSSH.git && cd GoSSH
Install with Go:
go install
In flake.nix
inputs add:
inputs = {
GoSHH.url = "github:erictossell/GoSSH";
};
In flake.nix
modules add:
modules = [
({ pkgs, GoSSH, ... }:
{
environment.systemPackages = with pkgs; [
GoSSH.packages.${system}.GoSSH
];
})
];
or
Imported as a module.nix
:
{ pkgs, GoSSH, ... }:
{
environment.systemPackages = with pkgs; [
GoSSH.packages.${system}.GoSSH
];
}
The first time running the application will generate a .config/GoSSH/configuration.json
if one does not exist.
{
"servers": ["192.168.2.195", "192.168.2.196", "192.168.2.197"],
"ssh_options": {
"192.168.2.195": "-p 2973",
"192.168.2.196": "-p 2973",
"192.168.2.197": "-p 2973"
},
"users": {
"192.168.2.195": "eriim",
"192.168.2.196": "eriim",
"192.168.2.197": "eriim"
}
}