Skip to content
/ pcm Public

a SSH client that reads PuTTY Connection Manager configurations, with fuzzy searching, auto-login and auto-commands.

License

Notifications You must be signed in to change notification settings

cfstras/pcm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1826ff0 · Apr 24, 2018

History

69 Commits
Apr 24, 2018
Apr 24, 2018
Apr 24, 2018
Mar 5, 2018
Jul 20, 2016
Aug 3, 2017
Mar 5, 2018
Mar 5, 2018
Aug 17, 2016
Jul 5, 2017
Jun 17, 2017
Dec 15, 2015
Aug 17, 2016
Apr 21, 2017
Apr 24, 2018
Oct 2, 2017
Jul 20, 2016
Jun 17, 2017
Aug 30, 2017
Jun 17, 2017

Repository files navigation

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

About

a SSH client that reads PuTTY Connection Manager configurations, with fuzzy searching, auto-login and auto-commands.

Resources

License

Stars

Watchers

Forks

Packages

No packages published