TigerVNC.SSH 4.3 KB

1234567891011121314151617181920212223
  1. version=pmwiki-2.2.130 ordered=1 urlencoded=1
  2. agent=Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/78.0.3904.108 Chrome/78.0.3904.108 Safari/537.36
  3. author=Hawk
  4. charset=UTF-8
  5. csum=
  6. ctime=1634987655
  7. host=2001:8a0:6813:4501:18d4:42f5:d6fb:184f
  8. name=TigerVNC.SSH
  9. rev=3
  10. targets=
  11. text='''VNC using an SSH Tunnel'''%0a%0aTo start the VNC server type:%0a%0a[@%0a$ vncserver%0a%0auser$ vncserver%0axauth: file /home/user/.Xauthority does not exist%0a%0aNew 'example.com:1 (user)' desktop is example.com:1%0a%0aCreating default startup script /home/user/.vnc/xstartup%0aCreating default config /home/user/.vnc/config%0aStarting applications specified in /home/user/.vnc/xstartup%0aLog file is /home/user/.vnc/example.com:1.log%0a@]%0a%0a%0aYour VNC port number will be 5900+%3cnumber_after_the_colon>.[[%3c%3c]]%0aIn this case your port would be 5901.%0a%0aTo create the SSH Tunnel type:[[%3c%3c]]%0a%0a$ ssh -L %3clocal_port>:localhost:%3cremote_port> -f -N -C user@example.com%0a%0aIn this case it would be:[[%3c%3c]]%0a%0a$ ssh -L %3cport_of_your_choosing>:localhost:5901 -f -N -C user@example.com%0a%0a%0a%0a'''Using PuTTY'''%0a%0aFirst start a new SSH connection to your server host and log in.%0a%0aAttach:putty_change_settings.png%0a%0aThen, left click on the program icon in the top bar -> Change Settings -> Connection -> SSH -> Tunnels.%0a%0aAttach:putty_ssh_tunnels.png%0a%0aSource port: %3clocal_port>[[%3c%3c]]%0aDestination: localhost:%3cremote_port> (localhost here represents the remote host)[[%3c%3c]]%0aKeep the Local and Auto radio buttons selected and click on Add.%0a%0aConnect to localhost:%3clocal_port> using a VNC Client.%0a%0aIt may still show the warning saying "Uncrypted Connection" in the VNC Client when connecting to localhost:%3cport> since it isn't aware of the SSH Tunnel.
  12. time=1634990210
  13. author:1634990210=Hawk
  14. diff:1634990210:1634989579:=1,2c1,2%0a%3c '''VNC using an SSH Tunnel'''%0a%3c %0a---%0a> '''VNC using a SSH Tunnel'''%0a> %0a39c39%0a%3c Then, left click on the program icon in the top bar -> Change Settings -> Connection -> SSH -> Tunnels.%0a---%0a> Then, left click on the program icon in the top bar -> Change Settings -> Connection -> SSH -> Tunnels%0a
  15. host:1634990210=2001:8a0:6813:4501:18d4:42f5:d6fb:184f
  16. author:1634989579=Hawk
  17. csum:1634989579=Added PuTTY screenshots
  18. diff:1634989579:1634987655:=37,38d36%0a%3c Attach:putty_change_settings.png%0a%3c %0a41,42d38%0a%3c Attach:putty_ssh_tunnels.png%0a%3c %0a45c41%0a%3c Keep the Local and Auto radio buttons selected and click on Add.%0a---%0a> Keep the Local and Auto radio buttons selected.%0a
  19. host:1634989579=2001:8a0:6813:4501:18d4:42f5:d6fb:184f
  20. author:1634987655=Hawk
  21. diff:1634987655:1634987655:=1,45d0%0a%3c '''VNC using a SSH Tunnel'''%0a%3c %0a%3c To start the VNC server type:%0a%3c %0a%3c [@%0a%3c $ vncserver%0a%3c %0a%3c user$ vncserver%0a%3c xauth: file /home/user/.Xauthority does not exist%0a%3c %0a%3c New 'example.com:1 (user)' desktop is example.com:1%0a%3c %0a%3c Creating default startup script /home/user/.vnc/xstartup%0a%3c Creating default config /home/user/.vnc/config%0a%3c Starting applications specified in /home/user/.vnc/xstartup%0a%3c Log file is /home/user/.vnc/example.com:1.log%0a%3c @]%0a%3c %0a%3c %0a%3c Your VNC port number will be 5900+%3cnumber_after_the_colon>.[[%3c%3c]]%0a%3c In this case your port would be 5901.%0a%3c %0a%3c To create the SSH Tunnel type:[[%3c%3c]]%0a%3c %0a%3c $ ssh -L %3clocal_port>:localhost:%3cremote_port> -f -N -C user@example.com%0a%3c %0a%3c In this case it would be:[[%3c%3c]]%0a%3c %0a%3c $ ssh -L %3cport_of_your_choosing>:localhost:5901 -f -N -C user@example.com%0a%3c %0a%3c %0a%3c %0a%3c '''Using PuTTY'''%0a%3c %0a%3c First start a new SSH connection to your server host and log in.%0a%3c %0a%3c Then, left click on the program icon in the top bar -> Change Settings -> Connection -> SSH -> Tunnels%0a%3c %0a%3c Source port: %3clocal_port>[[%3c%3c]]%0a%3c Destination: localhost:%3cremote_port> (localhost here represents the remote host)[[%3c%3c]]%0a%3c Keep the Local and Auto radio buttons selected.%0a%3c %0a%3c Connect to localhost:%3clocal_port> using a VNC Client.%0a%3c %0a%3c It may still show the warning saying "Uncrypted Connection" in the VNC Client when connecting to localhost:%3cport> since it isn't aware of the SSH Tunnel.%0a\ No newline at end of file%0a
  22. host:1634987655=2001:8a0:6813:4501:18d4:42f5:d6fb:184f