Metadata-Version: 2.1
Name: neko_rexec
Version: 0.0.2
Summary: send remote command through paramiko via ssh.
Author-email: GGN_2015 <premierbob@qq.com>
License: MIT License
        
        Copyright (c) 2024 GGN_2015
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: paramiko

# 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](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

```bash
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`.

```bash
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:

```bash
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".

```bash
python3 -m neko_rexec "admin" "192.168.0.1" "cd ~; ls -alh" "1145141919810" 22
```

