Share your terminal with anyone with just a few steps.

Ranjeet Jadhav
3 min readFeb 6, 2021

--

Problem statements:

How to take ssh access to the private machine which doesn’t have public IP (But has internet access).

Consider you are stuck at doing some important work on the Linux machine behind NAT. Now you want to invite your friend to help you.

Take the ssh access to a Linux machine which you can’t directly ssh.

Want to take Terminal access of a Linux machine from any machine using the web browser.

Share your terminal with anyone with just a few steps.

Terminologies:

Remote machine: The machine which terminal session you want to share.

Local machine: From which you want to take access.

Note: Make sure both machines have an internet connection.

Solution :

Teleconsole

Teleconsole is an open-source tool to share your Linux terminal session with people you trust.

Your friends can join via a command line using SSH or using their browser.

Implementation:

Quick installation:

Execute the below command on the remote machine. (It is not compulsory to install the teleconsole on the local machine )

# curl https://www.teleconsole.com/get.sh | sh

Once the installation is complete.

Execute the below command on the remote machine.

#teleconsole

The output of the command executed on the remote machine

In the output of the above command, you will get Teleconsole ID and WebUI Link.

This is the implementation of the remote machine.

Implementation of the local machine.

For Linux machines :

If you want to take access to the remote machine from a local Linux machine using a terminal then you have to install a teleconsole on your Linux local machine using the command mentioned above.

Once the installation is done fire the below command on the terminal of your Linux local machine:

# teleconsole join TELECONSOLE_ID(which will get in the output of teleconsole command on the remote machine)

The output of the command executed on the local machine

Congratulations..! You have successfully connected to the remote machine.

From windows machines:

Just paste the WebUI link in the browser of the window machine. (which will get in the output of teleconsole command on the remote machine).

FLOW:

How this works. Image source: Google

If you liked this please like and share and implement it.!

--

--

Responses (1)