Coder Social home page Coder Social logo

sshch's Introduction

SSH connection and aliases manager with curses and command line interface

sshch is released under DWTWL 2.55 license

sshch compatible with pyhon2 and python3, no additional libraries are required

Screenshot

sshch

Installing

You can install a release version from pip:

pip install sshch

Manual installation from the package or git repository also available:

To install for all users:

sudo python setup.py install

To install just for current user:

mkdir ~/.local/bin
cp sshch/sshch ~/.local/bin/

Using

To run curses interface:

sshch

To run command line help:

sshch -h

For exit from current ssh session press Ctrl+D.

Additional Features

  • If you want to use unsafe 'password' feature you must install sshpass first.
  • If you want to use bash autocompletion function with sshch, copy autocompletion script to /etc/bash_completion.d/:
sudo cp completion/sshch_bash_completion.sh /etc/bash_completion.d/sshch

(changes will come into effect with new bash session)

  • If you want to use zsh autocompletion:
  1. Place File in a Directory where ZSH can find it

    -> Search Path is Stored in $fpath

    -> echo $fpath

  2. Rename File to '_sshch'

sshch's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

sshch's Issues

how does grouping work?

Not mentioned in the readme and on -h. And quite confused for its use. Because I have several server clusters.
How do I add an alias to a group?
Or, what is the correct sshch.conf syntax for group members?
What is the difference between the host that has or not in the group in the sshch window?
Will the member group also be in bash autocompletion?

Thank you for developing such this great tool ๐Ÿ‘

Unable to start sshch, if folder ~/.config doesn't exist

open(conf_file, 'w')

Start without ~/.config folder returns
Traceback (most recent call last):
File "/usr/local/bin/sshch", line 791, in
open(conf_file, 'w')
IOError: [Errno 2] No such file or directory: '/home/user/.config/sshch.conf'

Might help:
conf_dir = os.path.expanduser("~") + '/.config'
if not os.path.exists(conf_dir):
os.makedirs(conf_dir)

Issue running a command on multiple hosts in curses mode

Firstly, thanks for a neat tool.

Secondly, when in curses mode I select multiple aliases then press 'c' I enter a command that I expect to run on the hosts that I had selected, however the command is executed on the localhost.

Not sure if it the correct fix, but I changed line 266 from:
ConnectAlias(alias, command)
to:
ConnectAlias(alias.split()[0], command)

The variable alias at this point contains the alias and group, this fails to resolve.

Thanks
Stuart

` character in password causes error

Returns below error if password includes ` character:

/bin/sh: -c: line 0: unexpected EOF while looking for matching ``'
/bin/sh: -c: line 1: syntax error: unexpected end of file

No issue, just a thank you!

Just wanted to leave a short "thank you" for your work! Most of the time I'm a terminal-only user and using sshch at work helps so much with managing ssh connections. No need to fiddle around with aliases anymore. Plus a decent overview of all my configured connections. Thank you!

bad interpreter

bash: /d/Program Files/newpython/Scripts/sshch: d:\program: bad interpreter: No such file or directory
when running sshch after installing it with pip

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.