An open API service indexing awesome lists of open source software.

https://github.com/reflexdemon/remote-ssh


https://github.com/reflexdemon/remote-ssh

Last synced: 20 days ago
JSON representation

Awesome Lists containing this project

README

          

remote-ssh
==========

Installation
------------
Compile the code using ANT(http://ant.apache.org/). The build.xml and the build.properties are provided part of the project.

For installing and other ANT related stuff please refer http://ant.apache.org/manual/install.html

***Note:***The compiled distribution binaries will be found inside `build/dist` folder.

**Running**
~~~
remote [OPTIONS]
~~~
**See options**:

***REQUIRED***
~~~
-h - Supply the hostnames to SSH Eg: `wwww.hostname.com[,www.anotherhostname.com,...]`
-c - The command to be executed `^` to escape space in command.
~~~
***OPTIONAL***: It will be prompted if not supplied
~~~
-u - The username to SSH
-p - The password for currently login
~~~

**Example**

The following will fire `ls-ltr` on `wwww.hostname.com[,www.anotherhostname.com,...]`

***WINDOWS***
~~~
remote -h wwww.hostname.com -c "ls -ltr"
~~~

***UNIX/LINUX***
~~~
./remote.sh -h wwww.hostname.com -c "ls^-ltr"
~~~
Note: The space in commandline is not not working as expected on Mac so we are using ^ to escape space.