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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sloth-ci.ext.ssh_exec-1.1.0.zip.
File metadata
- Download URL: sloth-ci.ext.ssh_exec-1.1.0.zip
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0c356d0c963ea7870252afbed188da56890889b4cc8df22faf852332c935540
|
|
| MD5 |
70b37fce5354d3d9ee06ab1ed9b93f33
|
|
| BLAKE2b-256 |
9e7384bbbce23ee7fa5dfcaa1688790e956fe57c0526d2eaa48df572f1c38b9e
|
File details
Details for the file sloth_ci.ext.ssh_exec-1.1.0-py3-none-any.whl.
File metadata
- Download URL: sloth_ci.ext.ssh_exec-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9949b58b8e578cbe6364e940ed893332476f6c038bd7e05f5ff520596167b535
|
|
| MD5 |
282e520dd4588e34a1fbbd47a535e8da
|
|
| BLAKE2b-256 |
7e93eda126c52c8646bab7a2b81dd2a215f18ad314b4e7f18e27af841c05b7be
|
File details
Details for the file sloth-ci.ext.ssh_exec-1.1.0.win-amd64.exe.
File metadata
- Download URL: sloth-ci.ext.ssh_exec-1.1.0.win-amd64.exe
- Upload date:
- Size: 141.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fc9a5a8315e30776b93183bae8ad0a1305374a6a2b39cd3cbb2bc275e0392f4
|
|
| MD5 |
6e3d71744501bfc7b6b2c7c7e49c356d
|
|
| BLAKE2b-256 |
7ccd1a1adbabf8f7aa5a18aa1e1e1b0ffdd46507ffdba5f370f2f0a3a934ba0c
|