dvopsway / sshmux Goto Github PK
View Code? Open in Web Editor NEWrun commands over ssh on muliple servers by passing servers as a command line parameter
License: GNU General Public License v3.0
run commands over ssh on muliple servers by passing servers as a command line parameter
License: GNU General Public License v3.0
Would be nice if we could store results in a database? Also measure execution times so you can visualise data.
Release the new version on achieving milestone https://github.com/dvopsway/sshmux/milestone/1
instead of specifying every server manually with the -h option, read a file with hosts like:
127.0.0.1
127.0.0.2
127.0.0.3
127.0.0.4
and connect to all that hosts.
We need some contribution guidelines and a style guide. Will fix this soon.
Hi @dvopsway
it is probably just me but I can't get it working to log in without an ssh key.
Whatever I do I always get Error: Invalid value for "--key" / "-k": file doesn't exist
when I run something in the lines of python ssh.py -u 'test' -i 127.0.0.1 --password 'test'
Do you know a way to get this working?
Thanks!
At the moment it is only possible to use an IP address, I like the way on how the IP address gets validated before use.
I will work on something to be able to use hostnames and IP addresses.
Thanks for your work!
We need some unittests, I will write a few and try to run it on travisci.
I am not 100% sure since I never used pexcept before. However I have the feeling that the code is sequential and not concurrent/parallel. So it connect to host a
first, executes a command and then connect to host b
and executes a commend.
What we of course would like to see is that it connects to host a
and host b
at the same time and prints the output.
I am not sure about pexcept, but I can't find anything about concurrency or parallel execution in their documentation.
Maybe we can use something like multiprocessing?
Let me know what you think about it!
integrate https://codecov.io/ for code coverage.
We need to do some research on replacing pexcept for subprocessing.
Biggest issue is keeping password support.
Would be nice to have something that shows you the differences between the multiple outputs.
So if you have a large set of server you want to connect to it only shows the difference instead of everything.
We maybe can use difflib for it.
We use an insecure password input form, a user needs to specify his password in the --password option, this can often be found back in a users history file.
I have an pr coming up for this which uses pythons getpass method.
Segregate ssh method, validation functions and main method in multiple files to make the code cleaner.
builds should automatically get uploaded to pypi
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.