Giter Club home page Giter Club logo

pretty's Introduction

pretty

Parallel remote execution tty - (Yet another parallel ssh/shell)

Installation:

go get -u github.com/ncode/pretty

Config:

By default it lives in ~/.pretty.yaml

username: ncode
history_file: ~/.pretty.history
ssh_private_key: ~/.ssh/id_rsa
groups:
    hosts:
        - host1
        - host2
        - host3
        - host4

Usage:

Parallel remote execution tty - (Yet another parallel ssh/shell)

usage:
	pretty <host1> <host2> <host3>...

Usage:
  pretty [flags]

Flags:
      --config string      config file (default is $HOME/.pretty.yaml)
  -h, --help               help for pretty
  -G, --hostGroup string   group of hosts to be loaded from the config file
  -H, --hostsFile string   hosts file to be used instead of the args via stdout (one host per line)

Connecting to hosts:

pretty host1 host2 host3 host4
pretty(2)>>
Error connection to host host3: Failed to dial: dial tcp: lookup host3: no such host
Error connection to host host4: Failed to dial: dial tcp: lookup host4: no such host

Connecting to hostGroups:

pretty -G hosts
pretty(2)>>
Error connection to host host3: Failed to dial: dial tcp: lookup host3: no such host
Error connection to host host4: Failed to dial: dial tcp: lookup host4: no such host

Connecting to hostsFile:

pretty -H /tmp/hosts.txt
pretty(2)>>
Error connection to host host3: Failed to dial: dial tcp: lookup host3: no such host
Error connection to host host4: Failed to dial: dial tcp: lookup host4: no such host

List connection status:

pretty(2)>> :status
Connected hosts (2)
Failed hosts (2)

List hosts:

pretty(2)>> :list
host1: Connected(true)
host2: Connected(true)
host3: Connected(false)
host4: Connected(false)

Running commands:

pretty(2)>> whoami
host1: ncode
host2: ncode

Why do I need it?

pretty is a tool to control interactive shells across multiple hosts from a single point.

Motivation

After using polysh for a long time. It came with the motivation to try to write my own parallel shell in GO. In the end the tool worked so well and I decided to open source the code.

TODO:

Forward Control+C and Control+Z requests to the destination terminal Support for encrypted ssh keys

pretty's People

Contributors

ncode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

joelrebel

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.