Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-06-2004, 10:40 PM   #1
LQ Newbie
Registered: Nov 2004
Posts: 2

Rep: Reputation: 0
ssh connection refused for external IP's

I've searched around the forums here and can't find an answer to my particular problem: ssh connects to my linux box from anywhere in the local network (192.168.0.*), but fails from any external IP.

I've put a clean install of Mandrake 10.1 on my linux box. Security level is set to Higher. I've temporarily turned off the firewall. My hosts.allow file is
sshd: ALL
My hosts.deny is

Port forwarding on the switcher to the linux box is working.

Error from ssh on the external machine trying to connect to my linux box (I've sensored my IP):
ssh -v [x.x.x.x]
OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090701f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: Connecting to [x.x.x.x] port 22.
debug1: connect to address [x.x.x.x] port 22: Connection refused
ssh: connect to host [x.x.x.x] port 22: Connection refused

Any advice?

Last edited by Pleonast; 11-06-2004 at 10:41 PM.
Old 11-07-2004, 10:38 AM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
Do you have any firewall rules in place on the router?

What about the linux box?
iptables -nL
Old 11-08-2004, 12:00 PM   #3
LQ Newbie
Registered: Nov 2004
Posts: 2

Original Poster
Rep: Reputation: 0
The linux firewall was disabled (via drakconf, etal.). The hardware switch is forwarding the proper ports correctly.

I found the problem: the DNS from the external site was not working. It was not looking up my domain name properly. Doh! Once that was fixed, no further problems.


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
SSH - Connection Refused eminence Linux - Networking 15 02-11-2020 09:48 AM
SSH Connection Refused? lowpro2k3 Linux - Networking 2 11-04-2009 11:02 AM
ssh secure connection refused lugoteehalt Linux - Networking 2 03-19-2004 10:33 AM
ssh connection refused rguptatx Red Hat 4 11-13-2003 06:18 PM
RH9 apache connection refused from external IP addr ashv3524 Linux - Newbie 5 11-08-2003 09:41 AM > Forums > Linux Forums > Linux - Networking

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