Simple SSH

Simple SSH enables running commands against a remote host via SSH. It is not an implementation of the protocol, but relies on any existing SSH client program installed on the client machine (eg: OpenSSH).

Simple SSH is stateless, in that a connection is initiated and terminated for every request, after a response is received. Commands can be pipelined, allowing to send multiple commands in a single request.

Simple SSH assumes public key authentication, where a client's public key is expected to be listed in the server's ~/.ssh/authorized_keys file. No other authentication methods are supported at this time.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      simple_ssh:
        github: GrottoPress/simple_ssh
  2. Run shards install

Usage

Development

Run tests with docker-compose run --rm spec. If you need to update shards before that, run docker-compose run --rm shards.

Contributing

  1. Fork it
  2. Switch to the master branch: git checkout master
  3. Create your feature branch: git checkout -b my-new-feature
  4. Make your changes, updating changelog and documentation as appropriate.
  5. Commit your changes: git commit
  6. Push to the branch: git push origin my-new-feature
  7. Submit a new Pull Request against the GrottoPress:master branch.