pcm

command module
v0.0.0-...-1826ff0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2018 License: MIT Imports: 36 Imported by: 0

README

pcm Build Status

a Linux SSH client wrapper reading PuTTYConnectionManager configurations, with fuzzy searching.

Supports auto-login with stored passwords and running predefined commands as specified in PuTTYCM

Screenshot

Search example:
fuzzy search example

Downloads

If you don't have Golang installed or don't want to build yourself (try it, it's not complex!), you can download the latest pre-built release here (I recommend putting it into ~/bin or /usr/local/bin):

Requirements to build

  • *nix (Successfully tested on OSX and Linux)
  • Golang 1.5+ (Available in most distros, for OSX: Homebrew!)

Installing

Once you have Golang, (go to golang.org/dl or install with homebrew: brew install go)

  • Set a GOPATH and include $GOPATH/bin in your $PATH (put these instructions in your .bashrc):

    export GOPATH=$HOME/go export PATH=$PATH:$GOPATH/bin

  • Install the software:

    go get github.com/cfstras/pcm

  • The binary will be at $GOPATH/bin/pcm, and will search for a connections.xml to be in $HOME/Downloads/.

  • To invoke:

    pcm # open the UI pcm my-node # Open the UI, prefill the search box with "my-node"

Once you have the UI, use arrow keys to navigate, type to search, and press enter to connect.

Arguments
-connectionsPath path/to/xml # to override the search path to connections.xml
-verbose/-v                  # display full info (with password) and hostname before connecting
-simple                      # disable UI

Hint: If you don't want to put your connections.xml into Downloads, put this alias in your ~/.bashrc:

alias pcm="$GOPATH/bin/pcm -connectionsPath $HOME/secret/connections.xml"

License

MIT. See LICENSE.md

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