Skip to content

fabioskb/remote-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Remote Shell

Run commands remotely via GitHub

RCMD

Arguments

* save_mode (optional): Disables the connection during the program's waiting period.
* wait_time : Waiting time to execute the command.
* user_git : GitHub username for a global configuration.
* email_git : GitHub account email for a global configuration.

Usage

  • rcmd

    Examples

    • $ rcmd

    • # sudo rcmd (For a command with root privileges.)

    • You will need to authenticate on github, follow the step by step shown in the terminal.

    • Now just open your github with another device, anywhere, and edit or add a command in the comando file of the .cmd repository (this repository was created when the program was run for the first time, it is a private directory).

    • Use exit command in the comando file to close the program on the next run.

    • You can use the waittime file remotely, in the .cmd repository, to configure the wait time on the next run. Usage: time + unit time. Examples -> 30s, 1.5h, 20m, 1d, ...

Install

  1. curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg

  2. echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null

  3. sudo apt update

  4. sudo apt install wget

  5. wget https://github.com/fabioskb/remote-shell/releases/download/Latest/remote-shell_0.1.4_all.deb

  6. sudo apt install ./remote-shell_0.1.4_all.deb