Skip to main content

SSH executor for Sloth CI

Project description

Run actions on remote machines over SSH.

By default, Sloth CI apps run actions in a subprocess on the same machine they're running on. This extension overrides this and makes the app execute actions on remote machines over SSH.

You can authenticate with login and password or by providing key files.


Installation
------------

.. code-block:: bash

$ pip install sloth-ci.ext.ssh_exec


Usage
-----

.. code-block:: yaml
:caption: ssh_exec.yml

extensions:
run_over_ssh:
# Use the sloth_ci.ext.ssh_exec module.
module: ssh_exec

# Hosts, comma-delimited. Optional port number can be provided after ':' (if not specified, 22 is used).
hosts:
- ssh.example.com
- myserver.com:23

# Username to use for authentication.
username: admin

# Password to use for authentication or to unlock a private key.
# password: foobar

# Additional private key files. If not specified, only the keys from the default location are loaded (i.e. ~/.ssh).
# keys:
# - ~/my_ssh_keys/key_rsa
# - somekey

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sloth-ci.ext.ssh_exec, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size sloth_ci.ext.ssh_exec-1.1.0-py3-none-any.whl (4.8 kB) File type Wheel Python version 3.5 Upload date Hashes View
Filename, size sloth-ci.ext.ssh_exec-1.1.0.win-amd64.exe (141.5 kB) File type Windows Installer Python version any Upload date Hashes View
Filename, size sloth-ci.ext.ssh_exec-1.1.0.zip (5.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page