Unable to use remote x11vnc on a ssh tunnel
I want to connect to my desktop at work via vnc. Here how I did:
On the remote machine I ran: Code:
autossh -M 8081 -NR 2222:localhost:22 -p3082 censor@censor.sytes.net Code:
ssh -vvv -NL 5900:localhost:5900 work define work in .ssh/config Code:
Host work Code:
export DISPLAY=:0 The log of the x11vnc Code:
24/07/2019 16:23:40 Got connection from client 127.0.0.1 Code:
debug1: Connection to port 5900 forwarding to localhost port 5900 requested. |
A few thoughts:
Quote:
Code:
ssh work Code:
netstat -tna | grep 5900 If it shows open, then go ahead and try a new window your original SSH command with port forwarding 5900. Then, on the local machine, try the same netstat command, to see if it's actually forwarded the port. If all this seems to be working, you at least know the port forwarding appears to be working. Code:
nmap -p5900 localhost |
All times are GMT -5. The time now is 09:55 PM. |