StevenDJaques
Posts: 18
Joined: Thu Oct 17, 2019 1:58 pm

VNC server over ssh to Android phone client

Fri Oct 25, 2019 7:50 am

First off, this community has been amazing. First the development of a tiny system that somehow replaces a power hungry desktop (with a pi 4) and then great support of the product.

Okay, so I've been all over trying to find a way to set up x11vnc on the pi so I can connect my Android phone's Jump VNC client to it over ssh. The pi is serving VNC over 5900 and ssh over 30440. If I enable port 5900 on the router, I can connect to an unencrypted VNC at myname@no-ip.org from anywhere, but leaving 5900 open just seems silly.
I tried on the pi forwarding 5900 to pi's local ip 30440 and that didn't work either.
AllowTcpForwarding Yes is enabled in ssh_d.
X11vnc is launched in ~/.config/autostart with

x11vnc -cursor -forever -usepw -display :0 -ultrafilexfer

as per other instructions. Running ssh commands on my phone won't work as the only ssh ability I have on the phone is connectbot and I have to log in to the pi to use ssh commands there. Great way to get confused as just what is local and what is remote.

TL;DR:
I'm trying to set up an automatically server driven, noninteractive x11vnc server with local vnc 5900 forwarded to local ssh 30440 that my phone's ssh-enabled vnc client can just connect to.

fruitoftheloom
Posts: 23132
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: VNC server over ssh to Android phone client

Fri Oct 25, 2019 10:03 am

StevenDJaques wrote:
Fri Oct 25, 2019 7:50 am
First off, this community has been amazing. First the development of a tiny system that somehow replaces a power hungry desktop (with a pi 4) and then great support of the product.

Okay, so I've been all over trying to find a way to set up x11vnc on the pi so I can connect my Android phone's Jump VNC client to it over ssh. The pi is serving VNC over 5900 and ssh over 30440. If I enable port 5900 on the router, I can connect to an unencrypted VNC at myname@no-ip.org from anywhere, but leaving 5900 open just seems silly.
I tried on the pi forwarding 5900 to pi's local ip 30440 and that didn't work either.
AllowTcpForwarding Yes is enabled in ssh_d.
X11vnc is launched in ~/.config/autostart with

x11vnc -cursor -forever -usepw -display :0 -ultrafilexfer

as per other instructions. Running ssh commands on my phone won't work as the only ssh ability I have on the phone is connectbot and I have to log in to the pi to use ssh commands there. Great way to get confused as just what is local and what is remote.

TL;DR:
I'm trying to set up an automatically server driven, noninteractive x11vnc server with local vnc 5900 forwarded to local ssh 30440 that my phone's ssh-enabled vnc client can just connect to.


Raspbian Buster includes RealVNC and RealVNC Connect enables "cloud middle man" connections:

https://www.raspberrypi.org/blog/get-ba ... c-connect/
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

PiGraham
Posts: 3929
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: VNC server over ssh to Android phone client

Fri Oct 25, 2019 10:23 am

Real VNC looks like what you need.

An alternative is Team Viewer. There is a server that runs on RPi and clients for all platforms and it has no problems with firewalls in my experience.

Free for personal use.

TeamViewer Host for Raspberry Pi

StevenDJaques
Posts: 18
Joined: Thu Oct 17, 2019 1:58 pm

Re: VNC server over ssh to Android phone client

Sun Oct 27, 2019 2:20 am

Cool, I'll look into that. Thanks.

Return to “Troubleshooting”