I have this command
compA$ssh -N -R 40500:127.0.0.1:5900 root@IPofVPS
and this command
compB$ssh -v -N -L 1231:127.0.0.1:40500 root@IPofVPS
And from CompB, I connect TightVNC viewer to 127.0.0.1:1231 , TightVNC prompts me with a password, I enter it, and it connects to and views compA. But sometimes, TightVNC Viewer doesn't prompt me with a password.
So I go to CompA, ctrl-c. And I go to compB, ctrl-c. Then I use the command history to re-enter the the ssh -R line on compA. And then the ssh -L line on CompB and I connect VNC viewer again, and it's fine. Thing is, I might drive…
compA$ssh -N -R 40500:127.0.0.1:5900 root@IPofVPS
and this command
compB$ssh -v -N -L 1231:127.0.0.1:40500 root@IPofVPS
And from CompB, I connect TightVNC viewer to 127.0.0.1:1231 , TightVNC prompts me with a password, I enter it, and it connects to and views compA. But sometimes, TightVNC Viewer doesn't prompt me with a password.
So I go to CompA, ctrl-c. And I go to compB, ctrl-c. Then I use the command history to re-enter the the ssh -R line on compA. And then the ssh -L line on CompB and I connect VNC viewer again, and it's fine. Thing is, I might drive…