GoSSH

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

README

GoSSH - Open Source Go Infrastucture Automation tool

Go Report Card codebeat badge

Project update:

It is currently in an usable state, and can be used to execute commands in varied ways and performs well. 👍

Logging has been implemented for SSH sessions (INFOs and ERRORs) and the output has been replaced with a progress bar. All outputs from now on, will be written to a log file for review. If running a command was successful, why would one want to see it and clutter the terminal. The logs are also rotated by date, to avoid multiple logs, if time was added to the file name. The logging will be enchanced even further, as the project continues.

Sudo commands are possible now. Just make sure you add the username's password to the password field, and it will be used.

The known_hosts file is causing some issues (issue open for it). Trying to resolve that, before release

Also redoing the CLI, as I would like it to be more seamless and intuitive. I will also be adding bash completion later, once I finish the new CLI.

  • Windows (laptop):
22 production servers (across 8 different countries):
real    0m5.366s
user    0m0.062s
sys     0m0.061s
  • Linux (production/staging server):
Tested on 24 production servers (across 8 different countries):
real    0m3.410s
user    0m0.443s
sys     0m0.051s

Command run:

> GoSSH.exe all hostname

and

> GoSSH all hostname

Current usage for GoSSH:

GoSSH [ option ] [ command ]

Options:

  • seq - Run the command sequentially on all servers in your config file
  • groups - Run the command on all servers per group concurrently in your config file
  • all - Run the command on all servers concurrently in your config file

Please feel free to test/use this and leave issues and comments in the issues tab.

I will be actively working on this for the foreseeable future

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL