no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | automated_startup_of_x11vnc_on_remote_host_via_remmina_and_ssh_tunnel [23.08.2019 10:48] (current) – created Pascal Suter | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== automated startup of x11vnc on remote host via remmina and ssh tunnel ====== | ||
+ | the end result will be this: in remmina you can double click on a stored session and it will automatically connect to a remote machine via ssh, start x11vnc on that machine, then create an ssh tunnel and finally connect to the remote vnc session via this tunnel. | ||
+ | |||
+ | ===== the simple solution ===== | ||
+ | first of all make sure you have password-less ssh key authentication in place, so you can ssh to your remote machine without being asked for a password. | ||
+ | |||
+ | your user on the remote machine needs to be able to start x11vnc on that machine | ||
+ | |||
+ | once you have verified this all works, you can start remmina and create a new connection profile. | ||
+ | |||
+ | as **Protocol** choose **VNC-VNC viewer** | ||
+ | |||
+ | as **Pre Command** use | ||
+ | ssh -p 123 me@mypc.myhome.ch x11vnc -display :1 -bg | ||
+ | here '' | ||
+ | |||
+ | as **Server** use '' | ||
+ | |||
+ | now go to the '' | ||
+ | |||
+ | now you **Should** be all set and you can now click on **Save and Connect** | ||
+ | |||
+ | by the way: a post command to close your x11vnc server session is not necessary. if not started with the '' | ||
+ | |||
+ | ===== the ugly truth (aka apparmor vs. snap) ===== | ||
+ | I am using the remmina snap rather than the apt package as the snap comes in a much newer version and i need some of the newly added features for RDP for some other sessions. And since i'm using ubuntu, apparmor is running and ready to cause troubles. | ||
+ | |||
+ | the above instructions did not get me connected in the first place. I had strange issues with the Pre Command. For example a simple '' | ||
+ | |||
+ | eventually i found out that the best way to **debug pre commands** is not the debug console of remmina which is awefully quiet about anything related to the pre command, but rather to look at ''/ | ||
+ | |||
+ | conveniently i also saw, that those non-working pre-commands where blocked by apparmor! | ||
+ | |||
+ | after looking into the profile for this snap which can be found in ''/ | ||
+ | |||
+ | the problem is: you can't simply edit this file and add '' | ||
+ | |||
+ | the second issue is: i think it is pointless to try and limit a software that should be as powerful as remmina to execute stuff.. as long as it is not run as root we are still quite on the good side here.. so my simple and dirty solution was to switch this profile to '' | ||
+ | |||
+ | sadly '' | ||
+ | / | ||
+ | aa-complain snap.remmina.remmina | ||
+ | |||
+ | and now FINALLY the above stuff was working as it should! | ||