remote shell through nats written by rust.
nats-server --user test --pass test
NATS_URL = localhost
NATS_ACCOUNT = username
NATS_PWD= password
REQ_DURATION = 60
SLAVEID= yourid
SLAVEID 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.
This command will specify the slave you want to control.You should run step3 on slave pc and config the slave id in the .env file. This salve_id (use arg) should be same with id in the .env file.
If true,the shell should demo result immediately.If false,the order is sent async and wait no result, you should consider false when run damon application or forever loop programme.
Send local file to remote.
Receive file from remote.
Send local directory and all sub-dirs,sub-files to remote. Command send_all is the combinations of command send.
Will restart remote computer.This command is sent by async message pub channel and act as the final rescue when shell crash. Pay attention to restart remote_shell automatically after system reboot.