LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-07-2012, 04:14 AM   #1
nuliknol
Member
 
Registered: Jul 2009
Posts: 42

Rep: Reputation: 0
port 6001


Hi,
I have installed gentoo linux and configured Xvnc. Everything is fine, but I found it listens on port 6001 on every interface:
Code:
tcp        0      0 0.0.0.0:6001            0.0.0.0:*               LISTEN      1921/Xvnc
is this a security problem ?
and, why 6001 and not 6000 ?
 
Old 07-07-2012, 04:51 AM   #2
rathodsuraj1
LQ Newbie
 
Registered: Jul 2012
Posts: 1

Rep: Reputation: Disabled
The vncserver command will startup a VNC server that open 3 next available TCP/IP port, starting from 5801, 5901, and 6001 respectively.
Port 5801 is for VNC client connection over HTTP protocol, port 5901 is for VNC client connection over RFB protocol, and port 6001 is to allows X applications to connect to the VNC server.
By executing vncserver for the second time or execute the vncserver :2 command, this will startup VNC server that bind and listen to port 5802, 5902, and 6002 respectively.
To kill the VNC server in Linux, just execute vncserver -kill :1 will kill the first VNC server that bind and listen to port 5801, 5901, and 6001. The vncserver -kill :2 will kill the second VNC server, and so on.
 
Old 07-07-2012, 01:39 PM   #3
nuliknol
Member
 
Registered: Jul 2009
Posts: 42

Original Poster
Rep: Reputation: 0
thanks, but I still have a question.
Does anyone can remotely login to the port 6001 and see the desktop ?
I have password set for vnc, so , is my setup secure or not?
is there anyway to test this setup doesn't allow remote passwordless logins?

Thanks in advance.

Quote:
Originally Posted by rathodsuraj1 View Post
The vncserver command will startup a VNC server that open 3 next available TCP/IP port, starting from 5801, 5901, and 6001 respectively.
Port 5801 is for VNC client connection over HTTP protocol, port 5901 is for VNC client connection over RFB protocol, and port 6001 is to allows X applications to connect to the VNC server.
By executing vncserver for the second time or execute the vncserver :2 command, this will startup VNC server that bind and listen to port 5802, 5902, and 6002 respectively.
To kill the VNC server in Linux, just execute vncserver -kill :1 will kill the first VNC server that bind and listen to port 5801, 5901, and 6001. The vncserver -kill :2 will kill the second VNC server, and so on.
 
Old 07-07-2012, 01:47 PM   #4
nuliknol
Member
 
Registered: Jul 2009
Posts: 42

Original Poster
Rep: Reputation: 0
I have set this DISPLAY:
Code:
[niko@localhost ~]$ export DISPLAY=XX.XX.XX.XX:1.0
[niko@localhost ~]$ xterm
Client is not authorized to connect to Serverxterm Xt error: Can't open display: XX.XX.XX.XX:1.0
[niko@localhost ~]$
(where XX.XX.XX.XX is my server's ip address)

and I get 'not authorized' error. Does this mean despite that 6001 port is open for everybody, it is securely set up. Correct?
 
  


Reply


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
LXer: LD Port Report Project aka Switch Port Mapper Tool LXer Syndicated Linux News 0 05-10-2009 08:11 PM
Configuring Automatic Redirects from port 80 to port 443 with bundled Apache server kaplan71 Fedora 1 12-28-2007 09:30 AM
port 6001 fakie_flip Linux - Networking 2 06-25-2006 09:09 PM
--destination-ports port[,port[,port...]] KevinGuy Linux - Networking 1 03-16-2004 07:06 PM


All times are GMT -5. The time now is 05:52 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration