Ylianst / MeshCentral

A complete web-based remote monitoring and management web site. Once setup you can install agents and perform remote desktop session to devices on the local network or over the Internet.
https://meshcentral.com
Apache License 2.0
4.33k stars 576 forks source link

Connect to localhost vnc session. #5745

Open Elevate-IT opened 1 year ago

Elevate-IT commented 1 year ago

Hi,

First of all thank you for Meshcentral – it's the most impressive device management tool I've come across!

I'm currently encountering a minor issue. My objective is to monitor multiple "Kiosk" systems with the following specifications:

Hardware: Odroid M1

Software: Ubuntu 22.04 server ubuntu-frame ubuntu-frame-osk ubuntu-frame-vnc wpe-webkit-mir-kiosk meshcentral agent installed (Linux ARM 64 bit, glibc/2.24 NOKVM)

I've installed ubuntu-frame on a Ubuntu server. (https://snapcraft.io/ubuntu-frame) This establishes a "gui" session. Using wpe-webkit-mir-kiosk we show a web application. To facilitate remote control of these devices, I've added ubuntu-frame-vnc. However, for security reasons ubuntu-frame-vnc only accepts connections on localhost:5900. Unfortunately, when using the "web-vnc" button on the device in Meshcentral, I'm unable to connect to the VNC session.

I've discovered that by creating a relay group/device to the initial device with the hostname "localhost," I can successfully connect to the VNC session. Is there a way to achieve the same outcome directly with the initial device? Otherwise, I would need to create separate groups/devices for each system.

Appreciate your assistance in advance!

Frederik

NiceGuyIT commented 1 year ago

IIUC this would be a feature request. The connect options within MeshCentral are for you to connect your browser to the device. Adding an option to connect to the device and setup a relay to a localhost port would be new development. This achieves the same goal that you did by configuring the relay separately.

Considering you can configure the relay in the web interface, I suggest posting this as a feature request to the MeshCentral repo. There's nothing specific to the MeshAgent.

Alternatively, you could setup a TCP proxy to localhost. HAProxy might be in the Ubuntu repos and you can use MeshCentral to configure it.

si458 commented 9 months ago

im confused? if you have the meshagent setup on ur remote device, and you have VNC installed of some form running on port 5900 the web-vnc should just work? i tried it on my mac and rpi, created a normal agent group, add devices/install meshagent, then click web-vnc, then connect, type user/pass or pass, i can see it

si458 commented 2 months ago

is this still an issue?