I am trying to connect from a windows or linux machine ('
Laptop') through a SSH server ('
Server') to a VNC server ('
Desktop').
I have attached a diagram which best demonstrates exactly what I am trying to achieve
![Smilie](https://www.linuxquestions.org/questions/images/smilies/smile.gif)
.
What I have tried so far is this:
[emdiesse@Laptop]$: ssh home.net
emdiesse@Server password:*****
[emdiesse@Server]$: ssh -L 5901:localhost:5901 Desktop
emdiesse@Desktop password:*****
[emdiesse@Desktop]$:vncserver
New 'X' desktop is Desktop:1
[emdiesse@Laptop]$: vncviewer home.net:5901
Error in TightVNCViewer: No connection could be made because the target machine actively refused it
I have port forwarding set up on my router for SSH (22) and VNC (5901) going to my
Server
So, now I'm a bit stuck
Does any of this make any sense and am I doing anything right, what next?
Thanks