sshrun
Run command on remote server via ssh channel.
Install
pip install sshrun
Installed Command
- sshrun
Usage
C:\Workspace\sshrun>python sshrun.py --help
Usage: sshrun.py [OPTIONS] [COMMAND]...
Run command on remote server via ssh channel.
Example:
1. Create ssh channel by user and password, and then run the command:
sshrun -h SERVER -P port -u root -p PASSWORD -- ping -c 4 127.0.0.1
2. Create ssh channel by user test and the given private key, and then
run the command:
sshrun -h SERVER -P port -u test -i ~/.ssh/id_rsa -- echo hi
3. Create ssh channel by user root and the default private key, and then
run the command:
sshrun -h SERVER -- echo hello
Note:
"--" means all arguments after "--" are options or arguments of the
command
Options:
-h, --host TEXT default to localhost.
-P, --port INTEGER default to 22.
-u, --user TEXT default to root.
-i, --private-key TEXT default to ~/.ssh/id_rsa
-p, --password TEXT NO password means using public key auth.
--help Show this message and exit.
Releases
v0.1.1 2020/05/23
- Set default host to localhost.
v0.1.0 2020/05/22
- First Release
Metadata
Release files for sshrun 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sshrun-0.1.1.tar.gz | 2.6 kB | Without provenance | Details for sshrun-0.1.1.tar.gz |
Release files / sshrun-0.1.1.tar.gz
| Download URL | sshrun-0.1.1.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0bc6800947a5ce8b3db3f674f459e09ea92abb88bba419ba2ecc780b1e179834
|
|
BLAKE2b-256 checksum How to use checksums |
c5afbe6fdb326f690a646d9c56a32b1a6980eb17da2c3fb34b74c42246145cda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
|
Security for sshrun 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.