LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-05-2011, 02:37 AM   #1
dhairya
LQ Newbie
 
Registered: Jul 2011
Location: Ahmedabad
Posts: 11

Rep: Reputation: Disabled
Question unable to connect vnc server over Internet


On the server having live ip address, I have installed vnc server using:
====================================================================
yum install vnc-server
yum groupinstall "X Window System" "GNOME Desktop Environment"
yum install xinetd vnc-ltsp-config
/sbin/chkconfig xinetd on
/sbin/chkconfig vncts on
/sbin/service xinetd restart
====================================================================


On my local machine connected to internet via LAN, I have installed vnc viewer using:
====================================================================
yum install vnc
====================================================================



When I connect to the vnc server using
vncviewer ipaddressofvncserver:1

it shows
unable to connect to host. No route to host (113)
 
Old 08-05-2011, 04:40 AM   #2
dhairya
LQ Newbie
 
Registered: Jul 2011
Location: Ahmedabad
Posts: 11

Original Poster
Rep: Reputation: Disabled
by doing /sbin/service iptables stop, I cloud connect using VNC. But I wished, if I could do it without causing security issues. Any alternate option ??
 
Old 08-05-2011, 09:59 AM   #3
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mandriva, CentOS, Ubuntu
Posts: 456

Rep: Reputation: 69
Indeed you should not turn off the firewall. You need to read up on tunneling vnc through ssh. That way you only need to open the ssh port.

Here's a simple guide. http://www.cyberciti.biz/tips/tunnel...ssh-howto.html

If you google for it, you'll find many more.
 
Old 08-06-2011, 02:44 AM   #4
dhairya
LQ Newbie
 
Registered: Jul 2011
Location: Ahmedabad
Posts: 11

Original Poster
Rep: Reputation: Disabled
Nice one.

Now localhost is working on that server (having live ip)
But when I try to connect from local machine to liveipmachine (using http://liveipofserver), it is unable to connect.

nginx is installed on the server machine.

any help regarding that ?

(By the way, when I did "/sbin/service iptables stop", local machine was able to connect server. But as you know I don't want to do "/sbin/service iptables stop"
 
  


Reply

Tags
centos, internet access, vnc, vncserver, vncviewer


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Unable to Connect to VNC server (vino) tiger.woods Ubuntu 1 03-08-2009 09:35 PM
Unable To Connect VNC carlosinfl Debian 1 06-29-2007 06:48 AM
Real VNC. Unable to connect joeman3429 Linux - Networking 4 10-18-2005 06:27 PM
unable to connect to server thru vnc... marvc Linux - Software 0 05-25-2003 06:24 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration