G
G
gremlintv22017-07-15 22:12:07
SSH
gremlintv2, 2017-07-15 22:12:07

Can teamviewer be forwarded via SSH?

What we have:
Comp1 (+ teamviewer) -> Internet -> Firewall (forwarding port 22) -> Comp2 (+ teamviewer)
What I want to do:
By forwarding port 5938 (teamviewer) via ssh, connect via teamviwer to Comp2 I managed
to do the opposite: with Comp1 port forward to Comp2 and then from Comp2 access Comp1 via teamviewer at 127.0.0.1 as follows:

ssh -N -L 5938:localhost:5938 [email protected]

When trying to do the opposite, i.e.:
ssh -N -R 5938:localhost:5938 [email protected]

SSH says that this port is already in use I
'll answer some questions right away:
Q: Why can't you just directly connect teamviewer'rom to Comp2, why bother?
A: The connection is very bad + teamviewer will periodically cut the connection.
Q: Why bother with all these crutches when there is a much more convenient way?
A: I would be very grateful for the practical advice of experienced people), please tell us which remote desktop you use by accessing the SSH port of the remote machine (except for VNC)
I decided through NX (Nomachine) https://www.nomachine.com/ AR10K00728

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
planc, 2017-07-16
@gremlintv2

-L takes the port for itself
-R gives its port to the host
on comp2 5938 port is already occupied by teamviewer
-C Requests compression of all data

V
vldanch, 2019-03-22
@vldanch

Yuzai https://tmate.io/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question