remote_shell 0.1.1

remote shell through mqtt written by rust.
remote_shell-0.1.1 is not a library.
Visit the last successful build: remote_shell-2.0.0

remote_shell

remote shell through nats written by rust.

step 1: Start golang nats message queue:

nats-server --user test --pass test

step 2: Revise conf string in .env :

NATS_URL = localhost
NATS_ACCOUNT  = username
NATS_PWD=  password
REQ_DURATION  = 60
ME= yourid
TOPIC=order

ME is id for slave, the slave only response for request which specified by 'use' command. NATS_URL is nats host,and the account,password is auth method provided by nats-io.

step 3: Start slave by run slave::slave_dispatch::dispatch();

step 4: Start host by run host::shell::run_shell();

step 5: Use remote shell from "use <slave id which from step 2 ME>", and send command as normal shell,like "cd /home" etc.

step6: The buildin function include:

use slave_id

wait true_or_false

send local_file_path remote_file_path

rec local_file_path remote_file_path

send_all local_dir_path remote_dir_path