Teleconsole is a free, open source command line tool that belongs to a clustered SSH server and is written in GoLang that you can use to start secure SSH sessions, perform local TCP port forwarding, and set up private proxies. It allows you to share your Linux terminal session with someone you trust.
Teleconsole also supports forwarding local TCP ports, allowing your friends to access Web applications running on your local host if it is behind NAT. Here are brief instructions on how to use Teleconsole.
The first step is to install the Teleconsole. Download and execute the installation script from the Teleconsole website:
curl https://www.teleconsole.com/get.sh | sh
After installation, start the Teleconsole:
Teleconsole
Once started, a new shell session is opened with a unique session ID and WebUI link, which can be shared with others if needed. Others can join a session over SSH using the following command:
teleconsole join <session-id>
Alternatively, you can add it in your browser by clicking on the WebUI link.
If you want to configure a Teleconsole to share multiple ports, you can use the f parameter to specify which ports to forward. To enable Teleconsole and forward a single port, such as port 3000 on localhost, you can use the following command:
teleconsole -f localhost:3000
This command starts a Teleconsole session and forwards port 3000 on localhost. Your friends can use this to join the session access port on the service.
If you need to forward multiple ports, you can use the f parameter multiple times, or separate ports by commas in a command. The following forwards ports 3000 and 5000 at the same time:
teleconsole -f localhost:3000 -f localhost:5000
or
teleconsole -f "localhost:3000,localhost:5000"
This allows you to share both port services at the same time.
When the Teleconsole is enabled and the port is forwarded, it displays a unique session ID and WebUI link. Your friends can join your session via this link or use the session ID to access your shared port.
Note that only trusted people can share these session ids and WebUI links, as this will allow them port access on your system. When using Teleconsole, be aware of the associated security risks and adopt appropriate safety measures. It is recommended that Teleconsole be configured with access permissions such as limiting the number of people connected, using SSH access control, creating a dedicated user account, changing session ids regularly, not sharing session ids in public, using a firewall to restrict access, implementing multi-factor authentication, etc.