LinuxQuestions.org
Visit Jeremy's Blog.
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 02-12-2004, 04:03 AM   #1
sirpelidor
Member
 
Registered: Oct 2003
Location: Madison
Distribution: mdk 8.2, 9.0, 9.2, slack 9.1
Posts: 403

Rep: Reputation: 30
Arrow how do i know if port 21 is open? (proFTP question)


hihi, trying to setup proFtp here, but it seems won't let me log in (kept saying severshut down)
i'm suspecting if it has to do with port 21 not aviable. are there's way to check?

here's the msg in detail:

root@localhost init.d]# ./proftpd start
Starting proftpd: [ OK ]
[root@localhost init.d]#

then i use client...
[allen@localhost allen]$ ftp xx.xx.xxx.xx
Connected to xx.xx.xxx.xx.
500 FTP server shut down (going down at Wed Feb 11 22:54:13 2004) -- please try again later
ftp>

so... i'm not sure if it has to do with port 21 or what not, thanks for your advise
 
Old 02-12-2004, 04:39 AM   #2
dennisa
LQ Newbie
 
Registered: May 2003
Location: Sweden
Distribution: Debian
Posts: 3

Rep: Reputation: 0
you can use netstat to see what services are listening to which port
Code:
netstat -a | grep LISTEN | grep ^tcp
should show something like
Code:
tcp        0      0 *:ftp                   *:*                     LISTEN
you may want to use a port scanner like nmap to see if it works. double checking your configuration might be a good idea as well

/ Dennis
 
Old 02-12-2004, 06:04 AM   #3
VincentB
Member
 
Registered: Jun 2003
Location: Brussels, Belgium
Distribution: Ubuntu 6.10
Posts: 139

Rep: Reputation: 15
You should really try nmap.
But check if you are behind a firewall.
For example, here are two different results for the same machine. The first test, I use my local IP adress while on the other one I use the IP provided by the ISP.
Hope this help,
Vincent

Starting nmap 3.30 ( http://www.insecure.org/nmap/ ) at 2004-02-12 12:59 UTC
Interesting ports on sun.xxx.be (192.168.1.100):
(The 1627 ports scanned but not shown below are in state: closed)
Port State Service
22/tcp open ssh
23/tcp open telnet
53/tcp open domain
80/tcp open http
111/tcp open sunrpc
139/tcp open netbios-ssn
443/tcp open https
631/tcp open ipp
665/tcp open unknown
668/tcp open unknown
683/tcp open unknown
694/tcp open unknown
787/tcp open unknown
2049/tcp open nfs
3306/tcp open mysql
6000/tcp open X11
10000/tcp open snet-sensor-mgmt

Nmap run completed -- 1 IP address (1 host up) scanned in 0.436 seconds
[vincent@sun vincent]$ nmap 80.201.XX.221

Starting nmap 3.30 ( http://www.insecure.org/nmap/ ) at 2004-02-12 13:01 UTC
Interesting ports on 221.XX-201-80.adsl.skynet.be (80.201.XX.221):
(The 1643 ports scanned but not shown below are in state: filtered)
Port State Service
80/tcp open http

Nmap run completed -- 1 IP address (1 host up) scanned in 71.450 seconds
[vincent@sun vincent]$

thanks for your question, btw: I did not know that port 80 was open on my computer.

Regards,
Vincent

Last edited by VincentB; 03-23-2004 at 11:58 AM.
 
  


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
Proftp with non standard port ryedunn Linux - Software 5 04-08-2006 10:36 PM
cannot SFTP to SUSE 9.2 box, port 22 open, can putty in though using same port. jgrady Linux - Networking 6 03-29-2005 08:44 AM
CVS server open port question gstasica Linux - Networking 6 11-12-2004 07:48 AM
Question on proftp synapse Slackware 1 11-09-2004 06:23 AM
firewall question... found open port from outside bdp Linux - Networking 3 05-07-2002 05:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:18 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
Open Source Consulting | Domain Registration