Re: [CentOS] VNC server not reponding to external requests

2013-02-26 Thread Neil Aggarwal
  Will the VNC server allow remote logins as root?
 From root did you run vncpasswd to create the needed /root.vnc/ files?

Yes, I did.  I see a /root/.vnc directory with a log, pid, passwd, and
xstartup
files.

Any suggestions?

Thanks,
  Neil

--
Neil Aggarwal, (972)834-1565, http://UnmeteredVPS.net/centos
Virtual private server with CentOS 6 preinstalled
Unmetered bandwidth = no overage charges







___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] VNC server not reponding to external requests

2013-02-26 Thread Robert Moskowitz

On 02/26/2013 01:19 PM, Neil Aggarwal wrote:
 Will the VNC server allow remote logins as root?
  From root did you run vncpasswd to create the needed /root.vnc/ files?
 Yes, I did.  I see a /root/.vnc directory with a log, pid, passwd, and
 xstartup
 files.

 Any suggestions?

And your /etc/sysconfig/vncserver has something like;

VNCSERVERS=1:foo 2:root

and you are attempting to connect to 5902 for the root user (compared to 
5901 for user foo)?


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] VNC server not reponding to external requests

2013-02-26 Thread Neil Aggarwal
Robert:

 And your /etc/sysconfig/vncserver has something like;
 VNCSERVERS=1:foo 2:root
 and you are attempting to connect to 5902 for the root user (compared to 
 5901 for user foo)?

Yes.

This is strange.  I just ran vncpasswd as root again and I can connect
now.  Weird, but I guess the problem is solved.

Thanks,
  Neil

--
Neil Aggarwal, (972)834-1565, http://UnmeteredVPS.net/centos
Virtual private server with CentOS 6 preinstalled
Unmetered bandwidth = no overage charges




___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] VNC server not reponding to external requests

2013-02-26 Thread Robert Moskowitz

On 02/26/2013 01:36 PM, Neil Aggarwal wrote:
 Robert:

 And your /etc/sysconfig/vncserver has something like;
 VNCSERVERS=1:foo 2:root
 and you are attempting to connect to 5902 for the root user (compared to
 5901 for user foo)?
 Yes.

 This is strange.  I just ran vncpasswd as root again and I can connect
 now.  Weird, but I guess the problem is solved.

Our's is not to reason why...


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] VNC server not reponding to external requests

2013-02-26 Thread Neil Aggarwal
 Our's is not to reason why...

I love that quote!  I guess you truncated it to be nice.

Thanks for your help!

Neil

--
Neil Aggarwal, (972)834-1565, http://UnmeteredVPS.net/centos
Virtual private server with CentOS 6 preinstalled
Unmetered bandwidth = no overage charges



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] VNC server not reponding to external requests

2013-02-25 Thread Robert Moskowitz

On 02/25/2013 11:33 AM, Neil Aggarwal wrote:
 Hello everyone:

 I tried following the instructions on this page to set up a VNC
 server:
 http://wiki.centos.org/HowTos/VNC-Server

 I can telnet to port 5901 from the machine itself:
 # telnet 127.0.0.1 5901
 Trying 127.0.0.1...
 Connected to 127.0.0.1.
 Escape character is '^]'.
 RFB 003.008

 But, when I try to connect to it from the outside world, I get a connection
 timeout.

 My /etc/sysconfig/vncservers file does not have the -nolisten tcp nor the
 -localhost
 options so it should be configured to accept outside connections.

 Is there some default setting in the vncserver that I need to change to
 allow outside
 connections?

And what about iptables?


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] VNC server not reponding to external requests

2013-02-25 Thread Neil Aggarwal
 Is there some default setting in the vncserver that I need to change to
 allow outside
 connections?
 And what about iptables?

I have iptables and selinux turned off currently.
It still will not connect.

Any other ideas?

Thanks,
 Neil


--
Neil Aggarwal, (972)834-1565, http://UnmeteredVPS.net/centos
Virtual private server with CentOS 6 preinstalled
Unmetered bandwidth = no overage charges




___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] VNC server not reponding to external requests

2013-02-25 Thread Robert Moskowitz

On 02/25/2013 01:15 PM, Neil Aggarwal wrote:
 Is there some default setting in the vncserver that I need to change to
 allow outside
 connections?
 And what about iptables?
 I have iptables and selinux turned off currently.
 It still will not connect.

 Any other ideas?

All I ever do is install vncserver, run vncpasswd on the account(s) I 
will configure in it, add to /etc/sysconfig/vncserver

VNCSERVERS=1:user1 2:user2

then enable 5901 and 5902 in iptables and it works.  I also tend to 
replace twn with exec gnome-session in the ~/.vnc/xstart file.

Then all you have are network firewall and transport security issues.


Last I looked, vncpasswd only accepted the first 8 characters and 
ignored the rest.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] VNC server not reponding to external requests

2013-02-25 Thread Eero Volotinen
 Is there some default setting in the vncserver that I need to change to
 allow outside
 connections?

Hi, what is output of following commands on root access:

getenforce

netstat -tupln

iptables -L -v

--
Eero
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] VNC server not reponding to external requests

2013-02-25 Thread Joseph Spenner


On 02/25/2013 01:15 PM, Neil Aggarwal wrote:
 Is there some default setting in the vncserver that I need to change to
 allow outside
 connections?
 And what about iptables?
 I have iptables and selinux turned off currently.
 It still will not connect.

 Any other ideas?

Check to make sure you have connectivity.
ie:  telnet ip.of.vnc.server 5900
  (5901, 5902, etc)

You should get 'connected' and/or some text indicating you connected to 
something.


 If life gives you lemons, keep them-- because hey.. free lemons.
~heart~ Sticker  fixer:  http://microflush.org/stuff/stickers/heartFix.html
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] VNC server not reponding to external requests

2013-02-25 Thread zGreenfelder
On Mon, Feb 25, 2013 at 11:33 AM, Neil Aggarwal n...@jammconsulting.com wrote:
 Hello everyone:

 I tried following the instructions on this page to set up a VNC
 server:
 http://wiki.centos.org/HowTos/VNC-Server

 I can telnet to port 5901 from the machine itself:
 # telnet 127.0.0.1 5901
 Trying 127.0.0.1...
 Connected to 127.0.0.1.
 Escape character is '^]'.
 RFB 003.008

 But, when I try to connect to it from the outside world, I get a connection
 timeout.


so it listens on the localhost, but is it also listening on the other
(eth0,1,2...) interfaces?are there possibly outbound network ACLs from
your outside host?   is there a firewall rule (I think later you said
iptables is off, but there could well be others, speculating about
your network topology)?   what do you get when you use telnet from
$outside to $ip_you_really_intend_to_use 5901?  and if that's not an
option have you considered tunneling X over ssh and just using that?
-- 
Even the Magic 8 ball has an opinion on email clients: Outlook not so good.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] VNC server not reponding to external requests

2013-02-25 Thread Joseph Spenner
On 02/25/2013 11:33 AM, Neil Aggarwal wrote:

 Hello everyone:

 I tried following the instructions on this page to set up a VNC
 server:
 http://wiki.centos.org/HowTos/VNC-Server

 I can telnet to port 5901 from the machine itself:
 # telnet 127.0.0.1 5901
 Trying 127.0.0.1...
 Connected to 127.0.0.1.
 Escape character is '^]'.
 RFB 003.008

 But, when I try to connect to it from the outside world, I get a connection
 timeout.

 My /etc/sysconfig/vncservers file does not have the -nolisten tcp nor the
 -localhost
 options so it should be configured to accept outside connections.

 Is there some default setting in the vncserver that I need to change to
 allow outside
 connections?

Try:

# netstat -an |grep 5901

What do you get back?

Also, is this box reachable from the outside world on any other ports?  Just 
curious about network connectivity.  SSH maybe?

telnet ip.of.box  22




 If life gives you lemons, keep them-- because hey.. free lemons.
~heart~ Sticker  fixer:  http://microflush.org/stuff/stickers/heartFix.htm
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] VNC server not reponding to external requests

2013-02-25 Thread Neil Aggarwal
Hey everyone:

I got it working.  I set it up under a user account.
I was trying to set it up with the root account.
It is working with the user account.

Will the VNC server allow remote logins as root?

Thanks,
  Neil

--
Neil Aggarwal, (972) 834-1565
We lend money to investors to buy or refinance single family rent houses.
No origination fees, quick approval, no credit check.

-Original Message-
From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf
Of Neil Aggarwal
Sent: Monday, February 25, 2013 10:33 AM
To: centos@centos.org
Subject: [CentOS] VNC server not reponding to external requests

Hello everyone:

I tried following the instructions on this page to set up a VNC
server:
http://wiki.centos.org/HowTos/VNC-Server

I can telnet to port 5901 from the machine itself:
# telnet 127.0.0.1 5901
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
RFB 003.008

But, when I try to connect to it from the outside world, I get a connection
timeout.

My /etc/sysconfig/vncservers file does not have the -nolisten tcp nor the
-localhost
options so it should be configured to accept outside connections.

Is there some default setting in the vncserver that I need to change to
allow outside
connections?

Thanks,
  Neil

--
Neil Aggarwal, (972)834-1565, http://UnmeteredVPS.net/centos
Virtual private server with CentOS 6 preinstalled
Unmetered bandwidth = no overage charges



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] VNC server not reponding to external requests

2013-02-25 Thread Ross Cavanagh
On Tue, Feb 26, 2013 at 9:55 AM, Neil Aggarwal n...@jammconsulting.comwrote:

 Hey everyone:

 I got it working.  I set it up under a user account.
 I was trying to set it up with the root account.
 It is working with the user account.

 Will the VNC server allow remote logins as root?

 Thanks,
   Neil

 Well, once you VNC to the system, you can simply change to the root use if
you have the credentials to do so.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] VNC server not reponding to external requests

2013-02-25 Thread Neil Aggarwal
 Well, once you VNC to the system, you can simply change to the root use if
 you have the credentials to do so.

I was hoping to connect to the remote session directly as root as opposed to
doing su.

  Neil

--
Neil Aggarwal, (972)834-1565, http://UnmeteredVPS.net/centos
Virtual private server with CentOS 6 preinstalled
Unmetered bandwidth = no overage charges




___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] VNC server not reponding to external requests

2013-02-25 Thread Robert Moskowitz

On 02/25/2013 07:55 PM, Neil Aggarwal wrote:
 Hey everyone:

 I got it working.  I set it up under a user account.
 I was trying to set it up with the root account.
 It is working with the user account.

 Will the VNC server allow remote logins as root?

I would answer you offlist on this one, but you are bouncing my direct 
emails.


 Thanks,
Neil

 --
 Neil Aggarwal, (972) 834-1565
 We lend money to investors to buy or refinance single family rent houses.
 No origination fees, quick approval, no credit check.

 -Original Message-
 From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf
 Of Neil Aggarwal
 Sent: Monday, February 25, 2013 10:33 AM
 To: centos@centos.org
 Subject: [CentOS] VNC server not reponding to external requests

 Hello everyone:

 I tried following the instructions on this page to set up a VNC
 server:
 http://wiki.centos.org/HowTos/VNC-Server

 I can telnet to port 5901 from the machine itself:
 # telnet 127.0.0.1 5901
 Trying 127.0.0.1...
 Connected to 127.0.0.1.
 Escape character is '^]'.
 RFB 003.008

 But, when I try to connect to it from the outside world, I get a connection
 timeout.

 My /etc/sysconfig/vncservers file does not have the -nolisten tcp nor the
 -localhost
 options so it should be configured to accept outside connections.

 Is there some default setting in the vncserver that I need to change to
 allow outside
 connections?

 Thanks,
Neil

 --
 Neil Aggarwal, (972)834-1565, http://UnmeteredVPS.net/centos
 Virtual private server with CentOS 6 preinstalled
 Unmetered bandwidth = no overage charges



 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] VNC server not reponding to external requests

2013-02-25 Thread zGreenfelder
 Well, once you VNC to the system, you can simply change to the root use if
 you have the credentials to do so.

 I was hoping to connect to the remote session directly as root as opposed to
 doing su.


I've used root vnc sessions in the past; sometimes if you have to use something
graphical it's just easier.   I've never had problems with creating
vnc sessions as root.



-- 
Even the Magic 8 ball has an opinion on email clients: Outlook not so good.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] VNC server not reponding to external requests

2013-02-25 Thread Robert Moskowitz

On 02/25/2013 07:55 PM, Neil Aggarwal wrote:
 Hey everyone:

 I got it working.  I set it up under a user account.
 I was trying to set it up with the root account.
 It is working with the user account.

 Will the VNC server allow remote logins as root?
 From root did you run vncpasswd to create the needed /root.vnc/ files?


 Thanks,
Neil

 --
 Neil Aggarwal, (972) 834-1565
 We lend money to investors to buy or refinance single family rent houses.
 No origination fees, quick approval, no credit check.

 -Original Message-
 From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf
 Of Neil Aggarwal
 Sent: Monday, February 25, 2013 10:33 AM
 To: centos@centos.org
 Subject: [CentOS] VNC server not reponding to external requests

 Hello everyone:

 I tried following the instructions on this page to set up a VNC
 server:
 http://wiki.centos.org/HowTos/VNC-Server

 I can telnet to port 5901 from the machine itself:
 # telnet 127.0.0.1 5901
 Trying 127.0.0.1...
 Connected to 127.0.0.1.
 Escape character is '^]'.
 RFB 003.008

 But, when I try to connect to it from the outside world, I get a connection
 timeout.

 My /etc/sysconfig/vncservers file does not have the -nolisten tcp nor the
 -localhost
 options so it should be configured to accept outside connections.

 Is there some default setting in the vncserver that I need to change to
 allow outside
 connections?

 Thanks,
Neil

 --
 Neil Aggarwal, (972)834-1565, http://UnmeteredVPS.net/centos
 Virtual private server with CentOS 6 preinstalled
 Unmetered bandwidth = no overage charges



 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos