Skip to main content

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

  1. go https://github.com/GGN-2015/rexec/releases and download a .whl file.
  2. 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>

without 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

neko_rexec-0.0.3.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

neko_rexec-0.0.3-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file neko_rexec-0.0.3.tar.gz.

File metadata

  • Download URL: neko_rexec-0.0.3.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

Hashes for neko_rexec-0.0.3.tar.gz
Algorithm Hash digest
SHA256 5ddc652c26cf0b6d70ba49f87bdd9794632a3015c2aa8773df96a223e1bc8b71
MD5 59512bb837c6844abe2fa0a2df7d5a48
BLAKE2b-256 14db7208f6c59bb04467848cb2f4bd41c36416612e48948e05143aa379994421

See more details on using hashes here.

File details

Details for the file neko_rexec-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: neko_rexec-0.0.3-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

Hashes for neko_rexec-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f35ba46aae2b78e591d1bbbc175e52f60c80b3888a07a819cc891f0d11aaa222
MD5 cc3d4e50772f199c9b388ef326226247
BLAKE2b-256 005864d55841c4038b72c95190a8f38a9178a1e4cbb567a781d6705194969266

See more details on using hashes here.

Supported by

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