Access your local system's Terminal(may be behind a NAT) through your android device in Real time.
This repository is divided into 3 parts:
- Android App
- Virtual Machine
- Local System
For this System to work you would need a Virtual Machine configured(on AWS, Azure, GCP or any other platform). Install java in your machine. Make sure you have the following data about your virtual machine:
- Virtual Machine Username
- Virtual Machine Password
- Allot any non-standard port for Reverse SSH Connection. Example: 9754
- Make sure the SSH port is still 22 on both Virtual Machine and on Local Machine.
ssh -R <reverse_ssh_port>:localhost:<local_host_port> <VM_username>@<VM_ip>
Use Sudo if Permission issue occurs.
Before running the android app change the Configuration settings - config.properties
Assuming VM is a Linux Machine.
- Install Java in your Virtual Machine.
- Copy the
VM
folder in your Virtual Machine. Assume it is~/remoTer
- Change the Configuration Settings - config.properties
- Compile the
~/remoTer/RemoTer.java
using the following command:
javac -cp ".:./jars/jsch.jar" RemoTer.java
- JSch (Java SSH Library)
- Sockets (For Testing and Debugging Purposes)
And you are good to go. Run the android app and access your Local system's Terminal.