Hello,
I have been trying to get a connection using ThinLinc via an SSH reverse tunnel back to a Kali Linux system but I have not been able to get it to work. I have searched for, and found, several previous posts about the topic but I have not been able to translate what I see in those posts into a working configuration.
I can connect back to the Kali Linux system through the reverse tunnel via standard SSH, but am unable to get a connection using the ThinLinc client. I have also been able to create a reverse tunnel back to the Kali Linux system and use the ThinLinc web connection.
The setup:
The remote Kali Linux system that I have is using autossh to create the tunnel to the intermediary Linux system. The command on the Kali Linux system is:
autossh -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -i /home/<user>/.ssh/<ssh_key> -R 3333:localhost:22 -R 33389:localhost:3389 -R 3300:localhost:300 -o "StrictHostKeyChecking=no" user@intermediary_Linux_system.org -N
Port 3333 tunnels SSH back to the Kali Linux system, port 33389 tunnels back to RDP on port 3389 (XRDP is actually not currently running since I like ThinLinc so much more), port 3300 tunnels back to the ThinLinc web service on port 300.
On my remote system I can create an SSH tunnel connection to the intermediary system using the following command from my remote system:
ssh -qnN -L 3333:127.0.0.1:3333 user@intermediary_Linux_system.org
Then I can SSH to the remote Kali Linux system via the reverse tunnel from my remote system using the following command:
ssh -p 3333 127.0.0.1
I can tunnel to the ThinLinc web connection if I connect from my remote system to the SSH reverse tunnel using this command:
ssh -qnN -L 3300:127.0.0.1:3300 user@intermediary_Linux_system.org
and then connect via a web browser using this URL
which ends up taking me to the remote ThinLinc web connect @ https://192.168.0.147:300/agent
I have tried many, many iterations of the
HOST_ALIASES=
in the ~/.thinlinc/tlclient.conf file but have never gotten anything to work.
Hopefully someone out there has been able to make something like this work and can help get me pointed in the right direction. What I am missing here?
Thanks very much in advance!







