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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Close
Hashes for sloth_ci.ext.ssh_exec-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9949b58b8e578cbe6364e940ed893332476f6c038bd7e05f5ff520596167b535 |
|
MD5 | 282e520dd4588e34a1fbbd47a535e8da |
|
BLAKE2b-256 | 7e93eda126c52c8646bab7a2b81dd2a215f18ad314b4e7f18e27af841c05b7be |
Close
Hashes for sloth-ci.ext.ssh_exec-1.1.0.win-amd64.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fc9a5a8315e30776b93183bae8ad0a1305374a6a2b39cd3cbb2bc275e0392f4 |
|
MD5 | 6e3d71744501bfc7b6b2c7c7e49c356d |
|
BLAKE2b-256 | 7ccd1a1adbabf8f7aa5a18aa1e1e1b0ffdd46507ffdba5f370f2f0a3a934ba0c |