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.

Source Distribution

sloth-ci.ext.ssh_exec-1.1.0.zip (5.3 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

sloth_ci.ext.ssh_exec-1.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

sloth-ci.ext.ssh_exec-1.1.0.win-amd64.exe (141.5 kB view details)

Uploaded Source

File details

Details for the file sloth-ci.ext.ssh_exec-1.1.0.zip.

File metadata

File hashes

Hashes for sloth-ci.ext.ssh_exec-1.1.0.zip
Algorithm Hash digest
SHA256 d0c356d0c963ea7870252afbed188da56890889b4cc8df22faf852332c935540
MD5 70b37fce5354d3d9ee06ab1ed9b93f33
BLAKE2b-256 9e7384bbbce23ee7fa5dfcaa1688790e956fe57c0526d2eaa48df572f1c38b9e

See more details on using hashes here.

File details

Details for the file sloth_ci.ext.ssh_exec-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sloth_ci.ext.ssh_exec-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9949b58b8e578cbe6364e940ed893332476f6c038bd7e05f5ff520596167b535
MD5 282e520dd4588e34a1fbbd47a535e8da
BLAKE2b-256 7e93eda126c52c8646bab7a2b81dd2a215f18ad314b4e7f18e27af841c05b7be

See more details on using hashes here.

File details

Details for the file sloth-ci.ext.ssh_exec-1.1.0.win-amd64.exe.

File metadata

File hashes

Hashes for sloth-ci.ext.ssh_exec-1.1.0.win-amd64.exe
Algorithm Hash digest
SHA256 0fc9a5a8315e30776b93183bae8ad0a1305374a6a2b39cd3cbb2bc275e0392f4
MD5 6e3d71744501bfc7b6b2c7c7e49c356d
BLAKE2b-256 7ccd1a1adbabf8f7aa5a18aa1e1e1b0ffdd46507ffdba5f370f2f0a3a934ba0c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page