I'm looking to route a port for VNC back to my house here. I have to jump over a single host to then hop to my actual work machine.
sittinghere
will be my local home machinehopper
will by the intermediate hop I need to makeoverthere
will be the remote work machine
I can do this to SSH into my work machine:
ssh -t hopper "ssh -t overthere"
I'd like to use port forwarding to forward remote port 5900 on overthere
to local port 5900 on sittinghere
. However, I'd prefer to be able to do it without binding to a port openly on hopper
as anyone on that machine would be able to attach to my VNC connection.
Is there any way for me to forward that port to my local machine securely with no one being able to get access to it on hopper
?