Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


  Search this Thread
Old 02-20-2006, 03:06 PM   #1
LQ Newbie
Registered: Mar 2004
Distribution: Mandrake
Posts: 2

Rep: Reputation: 0
Port Access

I recently installed Mandrive 10.2 (upgrading from 9) and am attempting to connect remotely via the ssh server. When running nmap on the machine it shows port 22 as being open, but when I attempt to connect remotely the connection times out. This also happens when I attempt to connect to the FTP server so something on the machine is blocking it. I tried just turning off the iptables service but that didnt have any effect. Any thoughts would be appreciated.
Old 02-20-2006, 05:28 PM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
Can you connect locally, e.g. ssh -v localhost or ftp localhost? If you can, then it's probably either the firewall or the ssh and ftp configuration.

Does your firewall set a default allow policy when you turn it off? If it does, nmap -sV should report the same thing locally and remotely? For example:
$ nmap -sV -p 22 localhost

Starting Nmap 4.00 ( ) at 2006-02-21 08:38 EST
Interesting ports on localhost (
22/tcp open  ssh     OpenSSH 4.2 (protocol 2.0)

Nmap finished: 1 IP address (1 host up) scanned in 0.145 seconds


U:\utility\nmap-3.93>nmap -sV -p 22

Starting nmap 3.93 ( ) at 2006-02-21 08:41 E. Australia Standard Time
Interesting ports on
22/tcp open  ssh     OpenSSH 4.2 (protocol 2.0)
MAC Address: 00:11:43:C4:BD:AB (Dell)

Nmap finished: 1 IP address (1 host up) scanned in 16.343 seconds
If you get the same thing locally and remotely, can you post your sshd_config file since it may be related to that.

Lots of maybes there... sorry about that
Old 02-21-2006, 04:35 AM   #3
Registered: Jan 2006
Location: Australia
Distribution: Mandriva 2006
Posts: 154

Rep: Reputation: 30
For what its worth Windows sets port 20 as ftp-data and port 21 as ftp-server
Is your port right?
Old 02-21-2006, 05:34 AM   #4
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
When I setup SSH on my Mandriva machine, I had a similar problem. It turned out that I had enabled the SSH daemon but the port was blocked by the firewall. Maybe your situation is similar to mine, so it may help if you check your security settings to make sure that SSH is one of the services allowed by your firewall.
Old 02-21-2006, 05:53 AM   #5
Registered: Oct 2005
Location: germany
Distribution: debian
Posts: 255
Blog Entries: 5

Rep: Reputation: 30
Originally Posted by Fool
When running nmap on the machine it shows port 22 as being open
Did you run nmap on both machines? Is the sshd running? (ps aux | grep sshd)


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
access using port 443 gtoerner Linux - Security 3 07-14-2005 05:48 PM
How to access a port in SUSE 9.1 nigam214 Linux - Networking 1 08-10-2004 12:26 PM
how to access to the parallell port with C?? xyzt Programming 2 04-02-2004 02:54 PM
Cannot access Port 80 arizona Linux - General 21 08-26-2003 12:32 AM
can't access some port from outside azure_ss Linux - Networking 5 10-02-2002 10:12 AM > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 02:07 PM.

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