send remote command through paramiko via ssh.
Project description
neko_rexec
send remote command through paramiko via ssh.
attention: we assume that your command will surely be finished in limited time, and this program will output nothing before your command is done on the remote server.
install from github release
- go https://github.com/GGN-2015/rexec/releases and download a
.whl
file. - use
pip install rexec-<version>-py3-none-any.whl
to install the package into your local environment.
install from pypi
pip install neko_rexec
usage
send remote command to server via ssh
you need to fill in six parameters in the following order, if you are not sure about the <port>
argument, try to let <port>
equal to 22
.
python3 -m neko_rexec <user> <host> <cmd> <password> <port>
wihtout password
if you have configured an auto login with ~/.ssh/authorized_keys
, you can just leave <password>
blank as follows:
python3 -m neko_rexec <user> <host> <cmd> "" <port>
sample
here is a sample usage of this package, this will output a detailed list of file under the home folder of the user named "admin".
python3 -m neko_rexec "admin" "192.168.0.1" "cd ~; ls -alh" "1145141919810" 22
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
Built Distribution
File details
Details for the file neko_rexec-0.0.2.tar.gz
.
File metadata
- Download URL: neko_rexec-0.0.2.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2039092c0a7e3e79aa27113c21a4fc8070a5ee37e9b115a0cd3b40a56015a5ad |
|
MD5 | de9d406c70348bc857c63dcf1e0b37f4 |
|
BLAKE2b-256 | db9311dbdd4705f6f51601622ac142609e100f006de96ea4d3d8d66793154645 |
File details
Details for the file neko_rexec-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: neko_rexec-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4a450f9ee7ba0bc86d62b43b5e7d0321e7d60690aa158a5e45d5a9919ad1d3d |
|
MD5 | 166511293c40ca5884c99acc23e9b58e |
|
BLAKE2b-256 | 5f051bfd0974ab46b365be3baf7d02043926259b9b449a8536f91a0448562535 |