Re: ssh only with internet connection?

From: Conrad J. Sabatier (conrads_at_cox.net)
Date: 06/27/04


Date: Sun, 27 Jun 2004 20:33:21 GMT

In article <40df2cd3$0$107$65c69314@mercury.nildram.net>,
Sven <no@spam.com> wrote:
>
>
>Greetings,
>
>I have experienced quite a strange behavior of sshd that I'd like to fix
>but don't quite know how.
>
>My network has two machines A and B and hardware router with NAT to get
>to the Internet via ADSL. Both run FreeBSD, A is a 4.10 box, B is a
>5.2.1. Box A is configured as a DNS server, which has my ISP's DNS
>servers as forwarders. It works fine - I tried "nslookup xyz" and
>"host xyz" and it runs properly. Both machines are configured to use A
>as a DNS.
>
>The problem: When the connection to the internet is available both
>machines boot up without any problems, and I can use ssh between them,
>i.e. from either one to the other. However, when the internet
>connection is down, ssh stops working. A previously established
>connection would still be maintained and be operational, but no new
>connection is possible. That is, even omitting hostnames and using IPs
>to set up the connection fails, e.g. "ssh user@1.2.3.4". Similarly,
>when no internet connection is available both machines would not get
>past the loading stage of sshd without ^C ing them.
>
>I though that running my own DNS would make my network independent from
>the internet, but the problem obviously persisted. Has anyone
>experienced this before or got a fix for it?
>
>Any help will be much appreciated
>
>Sven.

You might try adding entries to your /etc/hosts file for each machine.
I'm not intimately familiar with the workings of ssh/sshd, but it *may* be
a simple lookup failure.

-- 
Conrad J. Sabatier <conrads@cox.net> -- "In Unix veritas"


Relevant Pages

  • Re: Non-domain connection problem
    ... Ethernet adapter Local Area Connection: ... Connection-specific DNS Suffix. ... I hard coded the DNS server to a known DNS on the internet: ... Again this had no effect on the ability to connect to the internet. ...
    (microsoft.public.windows.server.sbs)
  • Re: Added router, lost web site
    ... Did your ISP create a DNS record for your FQDN? ... > really have a direct connection. ... > Internet connection information: ... > Preferred DNS server: someisp DNS server address ...
    (microsoft.public.windows.server.sbs)
  • Re: Non-domain connection problem
    ... Notice that the default gateway and DNS IP addresses are different, ... as the fact that there is a WINS server listed. ... Ethernet adapter Local Area Connection: ... Again this had no effect on the ability to connect to the internet. ...
    (microsoft.public.windows.server.sbs)
  • RE: Internet Speed
    ... I understand that the connection from ... internal clients to Internet is very slow if you configure the clients' DNS ... You have to rerun the CEICW to make sure your SBS 2003 server have right ...
    (microsoft.public.windows.server.sbs)
  • Re: ISA 2006 and Listeners Part 2!
    ... All machines use only the internal AD/DNS ... No machine should ever use any other DNS ... The AD/DNS machine will use the ISP's DNS in the ... Microsoft Internet Security & Acceleration Server: ...
    (microsoft.public.isa.configuration)