LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-13-2021, 10:36 AM   #1
Basslord1124
Member
 
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507

Rep: Reputation: 51
VNC Server (TightVNC)/Remmina VNC client/SSH issues


Ok, I am trying to set up a VNC connection to my server so I can use a GUI for those times when I might need one. I am also trying to get this VNC connection to travel over SSH as well so it's secure.

So far:
-I have installed tightvnc on my server
-I have SSH installed on my server on a non-standard port and have been using and loving SSH for a while now to do administrative tasks while I'm away.
-I have been trying to follow various tutorials on this and not having much luck.
-I have Remmina installed on my laptop and am using it as my VNC client...I have plugged in all the various settings that I think should work. All it does is stay on "Connecting to <my server name>".
At least for the time being I've been doing everything remote as we have been at my in-laws house. Feel like I am missing something, not sure if it's on the server side or a misconfigure with this Remmina client. The GUI I am using on the server is LXDE. Appreciate any help.
 
Old 06-13-2021, 06:15 PM   #2
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
describe how you set up SSH to forward VNC to the server. your use of non-standard ports is a good idea, so let's make up some port numbers for talking about. the server has SSH listen on port 222 (not really, just made up). VNC is listening on port 333. so when you run ssh to work in text command line you do ssh -p 222 ... describe how you set up SSH to forward VNC with this. you can use these numbers so you don't reveal your own.

it sounds like an SSH connection mistake. but whether it is the connection to SSH or the connection to VNC is unknown at this point.

Last edited by Skaperen; 06-13-2021 at 06:18 PM.
 
Old 06-13-2021, 06:24 PM   #3
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
i assume you have VNC listening on localhost so the world can't connect to it. can you temporary have it listen on your public IP address so you can test VNC without SSH (don't login unless it is a test user that will go away when you are done)?
 
Old 06-13-2021, 08:55 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,727

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
Is ssh forwarding enabled and are you forwarding the correct port? A command line example is:
ssh -L 5901:localhost:5901 REMOTE_IP

The address you would use for the host in Remmina is:

localhost:5901

I assumed that vnc was working correctly when you were home and the laptop was on your LAN?
 
Old 06-14-2021, 12:05 AM   #5
Basslord1124
Member
 
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507

Original Poster
Rep: Reputation: 51
I have played with it some more throughout the day. I am home now and testing it locally for the first time. It's semi-working at this point but still have some issues.

To answer some questions:
Here's the command I used to tunnel the traffic over SSH:

ssh -L vnc_port:localhost:vnc_port <server IP> -p server_ssh_port

I have port forwarding set up on my router to my ssh port so I can remote to it from outside.

Thanks michaelk...your suggestion for the Remmina setting was something I must've been missing. It actually progressed a little further and appeared to connect to the server. Only thing now is I am getting a full black screen which may be a result of my testing with things earlier. Regardless, it's late and I'm off to bed...I'll be home a little more the next few days so I can check it locally.

Appreciate the help so far.
 
Old 06-14-2021, 02:37 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,727

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
What distribution are you running on the server? For debian 10 I followed this guide.
https://tecadmin.net/how-to-install-...-on-debian-10/

debian does not have a /etc/vnc/xstartup but the rest of the script seemed to work.
 
Old 06-17-2021, 11:02 PM   #7
Basslord1124
Member
 
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507

Original Poster
Rep: Reputation: 51
Thanks michaelk, I am using Debian 10.

Well it is officially working, so I appreciate everyone's help. I've been at home more the past few days so was able to test it locally. Once I felt comfortable with it, I turned on my wireless hotspot on my cell and treated that as my external connection and was able to remote in via SSH/VNC that way as well. In the end, I think it was more of a setting with Remmina than it was with the server. Thanks again!
 
  


Reply

Tags
lxde, remmina, tightvnc, vnc, vncserver



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 14.1 Xfce + Remmina TSE Client vs. Windows 2008 Server : three problems kikinovak Slackware 4 04-24-2014 02:06 PM
Remmina, RDP, China Client to USA Host, No response charlemagne-is-my-son Linux - Networking 1 03-21-2014 07:48 PM
[SOLVED] Failed Remmina RDP/VNC setup in a firewalled network shayno90 Linux - Networking 1 07-13-2012 10:02 AM
Issue with vnc server "tightVNC: VNC server closed connection", due to Screensaver frenchn00b General 1 07-30-2009 06:55 AM
VNC Over SSH | Linux laptop -> Linux SSH Server -> Windows VNC Server jakestaby Linux - Networking 3 01-28-2009 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration