Re: Need help installing SSH tunnel

From: Andrew Schulman (andrex_at_deadspam.com)
Date: 07/26/03


Date: Fri, 25 Jul 2003 22:39:16 -0400


> channel 3: open failed: connect failed: Connection refused

This could be a problem with the firewall or /etc/hosts.allow on the server.
Do both of these permit all connections from localhost? In my
/etc/hosts.allow, I have

# localhost
ALL : 127.
ALL : xx.xx.xx.xx

where xx.xx.xx.xx is the external IP address (on eth0) of the server. This
permits all connections from localhost there. Yes, I know the second
condition seems strange, because tunneled connections should come over the
loopback interface, on 127.0.0.1. I don't understand this either, but
until I added it, I also got refused connections.

As a diagnostic, have you tried logging in to the server (say, sitting at
its console) and running your ssh and telnet session there? You have to be
able to make it work that way first. If you can, then you know the problem
is elsewhere-- maybe the firewall, or /etc/hosts.allow.

Try turning on debug options in all of your servers, then look in syslog,
auth.log, daemon.log, etc. You'll probably find some clues there.

Good luck!
Andrew.

-- 
To reply by email, change "deadspam.com" to "alumni.utexas.net"


Relevant Pages

  • Re: WinXP and 2K: Inbound Connections Limited to 10?
    ... That mean that server ( ... >> on incoming connections established for the purpose of sharing resources ... >> may be bound by legal agreement to not permit more than 10 clients. ...
    (microsoft.public.win32.programmer.networks)
  • update kernel, now cannot connect to postfix
    ... now I cannot connect to Postfix to send an e-mail ... I can connect from localhost, but not from outside the server. ... Connections ...
    (Fedora)
  • Re: C# Reflection - Nasty bug??
    ... You can verify the server portion is running because when you telnet into ... tried on the localhost interface without going through the actual card. ... I.E. might be listening for connections but not ... The client portion is not connecting to the right host. ...
    (microsoft.public.dotnet.languages.csharp)
  • Limitation of Connections from source IP to Linux 2.2?
    ... I'm using an old Kernel version 2.2 on a server and the number of connections is increasing and increasing. ... Sometimes on high traffic I can't connect anymore to this server via localhost. ... All IPs accessable from outside are working, the problem apears only on localhost. ...
    (comp.os.linux.misc)
  • Re: SBS 2003 IIS BASED SERVICES FAIL INTERMITTENTLY
    ... If I read your post correctly, you have a switch where the SBS ... Run DHCP server on your SBS, and set all client machine nics to dynamic. ... Once you have your nics configured, run the Connect to the Internet wizard, ... QUESTION1 - what is REFUSING CONNECTIONS? ...
    (microsoft.public.windows.server.sbs)