yuriynasretdinov / gossha Goto Github PK
View Code? Open in Web Editor NEWGo SSH agent: can execute commands at thousands of servers and upload files to them
License: BSD 2-Clause "Simplified" License
Go SSH agent: can execute commands at thousands of servers and upload files to them
License: BSD 2-Clause "Simplified" License
Hi Yuriy,
would you mind putting a LICENSE file with an MIT or BSD license on your repository so that others can use your code?
Thank you.
Jason
go get github.com/YuriyNasretdinov/GoSSHa
....\YuriyNasretdinov\GoSSHa\main.go:51: undefined: ssh.ClientKeyring
Windows,
go1.2.2,
386
There are 2 servers.
The first server with /home/webmaster/2.php
:
<?php
sleep(3);
echo '1';
The second server does not contain file 2.php
.
Run GoSSHa with input command:
{"Action":"ssh","Cmd":"php /home/webmaster/2.php","Hosts":["136.243.156.103", "136.243.156.101"],"Timeout":2}
Result:
{"Type":"InitializeComplete","InitializeComplete":true}
{"Type":"FinalReply","TotalTime":0.002316638,"TimedOutHosts":{"136.243.156.101":true,"136.243.156.103":true}}
so does this require any other software o the client or server. Its 100% golang ?
Hi, can you help what I do wrong?
$ ssh webmaster@<host>
Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 4.2.0-27-generic x86_64)
* Documentation: https://help.ubuntu.com/
You have new mail.
Last login: Wed Mar 23 15:21:23 2016 from 195.16.110.65
webmaster@environment:~$ exit
logout
Connection to <host> closed.
$ GoSSHa -l webmaster
{"Type":"InitializeComplete","InitializeComplete":true}
{"Action":"ssh","Cmd":"uptime","Hosts":["<host>"]}
{"Type":"Reply","Hostname":"<host>","Stdout":"","Stderr":"","Success":false,"ErrMsg":"ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain"}
{"Type":"FinalReply","TotalTime":0.711877219,"TimedOutHosts":{}}
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.