Help us shape the future of Go! Take the 2026 Go Developer Survey

g-ssh-cmd

command module
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 13 Imported by: 0

README

main

A simple wrapper to ssh user@host -t command for executing arbitrary commands to AWS AutoScaling Groups and GCP Managed Instance Groups. It uses your environment's aws and gcloud commands, as well as your SSH setup behind the scenes.

This tool has been created primarily for tailing logs from multiple, managed VMs, without going through either CloudWatch Logs (AWS) or Cloud Logging (GCP).

To install using Homebrew:

$ brew install flowerinthenight/tap/g-ssh-cmd

Basic usage looks something like:

# Tail all AWS ASG VMs' system logs:
$ g-ssh-cmd asg my-asg 'journalctl -f' --key ~/.ssh/key.pem

# Tail all GCP MIG VMs' system logs:
$ g-ssh-cmd mig my-mig 'journalctl -f'

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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