User avatar
makem
Posts: 249
Joined: Tue Jun 18, 2013 9:22 pm

Is it possible to VNC securely from a mobile phone?

Mon Dec 18, 2017 1:05 am

From a Linux pc I can issue the following commands to tunnel a VNC connection to the VNC server on my pi from the WAN:

ssh -L5901:localhost:5901 [email protected] -p443

While that is running:

vncviewer localhost:1

I am wondering if I could do the same from a mobile phone in some way, ie. duplicate the Linux Terminal to make those commands?

I have tried a number of ssh apps but none accept commands in that form.

mattmiller
Posts: 2079
Joined: Thu Feb 05, 2015 11:25 pm

Re: Is it possible to VNC securely from a mobile phone?

Mon Dec 18, 2017 8:22 am

Might be worth trying an android VNC app that uses ssh directly - bVNC seems to be one

User avatar
makem
Posts: 249
Joined: Tue Jun 18, 2013 9:22 pm

Re: Is it possible to VNC securely from a mobile phone?

Mon Dec 18, 2017 7:30 pm

Thank you, that looks promising. I have the pro version now.

However I am getting an error:

"Failed to authenticate to SSH server with key-pair please check your SSH username and ensure your public key is in the authorized_keys file on the remote side."

The key generated by bVNC is in the /.ssh/authorized_keys file of the pi, I am using the same username used to successfully to ssh into the pi.

So, unless the authorized_keys file needs to be somewhere else I fail to see why I am getting the error. Unless, bVCN is not compatible with the VNC server supplied in Raspbian.

mattmiller
Posts: 2079
Joined: Thu Feb 05, 2015 11:25 pm

Re: Is it possible to VNC securely from a mobile phone?

Mon Dec 18, 2017 9:11 pm

I think your right - I couldn't get bVNC to connect even without using SSH

I've go an alternative working but not using key files as I've never used them

I installed ConnectBot and managed to use the standard realVNC droid app to ssh tunnel to my Pi
https://shantanugoel.com/2010/08/02/ssh ... g-android/


So I don't know if it will work using key files but maybe worth a go

User avatar
makem
Posts: 249
Joined: Tue Jun 18, 2013 9:22 pm

Re: Is it possible to VNC securely from a mobile phone?

Mon Dec 18, 2017 9:26 pm

I think I will stick with bVNC having paid for it! Need to find a manual or guidance though.

Apparently x11vnc is the way to go. I've used that in the past.
Last edited by makem on Tue Dec 19, 2017 4:48 pm, edited 1 time in total.

knute
Posts: 445
Joined: Thu Oct 23, 2014 12:14 am
Location: Texas
Contact: Website

Re: Is it possible to VNC securely from a mobile phone?

Tue Dec 19, 2017 4:24 pm

Raspbian comes with a RealVNC server installed. There is an Android VNC client app and probably one for the other OS' too. I think the encryption in RealVNC is more than adequate for your phone.

User avatar
makem
Posts: 249
Joined: Tue Jun 18, 2013 9:22 pm

Re: Is it possible to VNC securely from a mobile phone?

Tue Dec 19, 2017 4:57 pm

knute wrote:
Tue Dec 19, 2017 4:24 pm
Raspbian comes with a RealVNC server installed. There is an Android VNC client app and probably one for the other OS' too. I think the encryption in RealVNC is more than adequate for your phone.
Hi, thanks for taking the time to make the comment.

I stay in a private house with family in China. They tell me that when a foreigner visits, the local boy hackers 'try it on'. I've paid for bVNC and I've installed x11VNC so I intend to make those work. But it is going to be a steep learning curve when I don't yet understand the basics of tunnelling, ssh and keys use. I think a library visit is called for to get a basic grasp of the concept. A lot of what I read on the web is confusing and contradictory.

User avatar
makem
Posts: 249
Joined: Tue Jun 18, 2013 9:22 pm

Re: Is it possible to VNC securely from a mobile phone?

Tue Dec 19, 2017 8:14 pm

mattmiller wrote:
Mon Dec 18, 2017 9:11 pm
I think your right - I couldn't get bVNC to connect even without using SSH

I've go an alternative working but not using key files as I've never used them

I installed ConnectBot and managed to use the standard realVNC droid app to ssh tunnel to my Pi
https://shantanugoel.com/2010/08/02/ssh ... g-android/


So I don't know if it will work using key files but maybe worth a go
I have bVNC working now using keys with x11VNC. It is on external port 443 and forwarded to the pi 22. I am using a passphrase but maybe that is OTT and a pain to keep having to type in.

I have an s8 phone and the viewer is offset to the right in landscape view but is moveable and zoomable.

Now I need to learn the screen finger moves which I've seen listed somewhere

Return to “Beginners”