Ask a Question related to FreeBSD, Design and Development.

  1. #1

    Default cna't ssh localhost

    Hi, I'm in trubble now, and don't know what to think about...

    I'm install FreeBDS 5.3. stable from DVD iso. This is fresh
    system: I'm not recompile the kernel and working with GENERIC
    kernel. This means that I don't use any firewall and ip filter.

    Now, I configure net interface in /etc/rc.conf:

    <...>
    ifconfig_rl0="inet 172.16.0.2 netmask 255.255.255.252"
    defaultrouter="172.16.0.1"
    <...>

    then I type following

    $ ssh 127.0.0.1

    But connection hang up, of course, I can't do ssh from gateway
    (172.16.0.1) to localhost (172.16.0.2) too.

    ########
    # BUT! #
    ########

    If I comment line with defaultrouter in rc.conf:

    <...>
    ifconfig_rl0="inet 172.16.0.2 netmask 255.255.255.252"
    #defaultrouter="172.16.0.1"
    <...>

    and reboot, connecion working good: ssh 127.0.0.1 work, and ssh
    from gateway to local mashine work good.

    If I, after that type manually

    $ sudo route add 0.0.0.0 172.16.0.1

    connection to loop interface hangs again.

    Have you any ideas?

    --
    Sensory yours, Eugene Minkovskii
    óÅÎÓÏÒÎÏ ×ÁÛ, å×ÇÅÎÉÊ íÉÎØËÏ×ÓËÉÊ
    Eugene M. Minkovskii Guest

  2. Similar Questions and Discussions

    1. cna't view flash contnet no matter what I try
      I have been trying for a week - It seems to install OK as Flash shows up on my programs list, but I can't view any flash content - I just get the...
    2. I cna't see the problem... on simple 25 line of code
      what am trying to do is to get it to send some vars to a HTTPSerivce using the "POST" method and I wanted to try the basics out before I started...
    3. how to set up 'localhost' for IE?
      Hi, I have installed phpdev that comes with mysql/phpMyAdmin/php/apache. verything works fine with Netscape but i have trouble setting up IE to...
    4. finding out localhost :-P
      Heres the problem. I have one of my client's site hosted on a crappy server, and i have it running with php+mysql ok, the thing is i need to...
    5. Something simple!? Sessions - admin.localhost to main.localhost
      Hi Why does the following code allow me to keep the same session when in the same sub domain (ie admin.localhost), yet not when I goto another...
  3. #2

    Default cna't ssh localhost

    Just off the top of my head, check that your DNS is working. My guess
    is that the sshd is trying to do a reverse DNS lookup, when you have the
    network configured. It takes a looooong time for a DNS lookup to time
    out.

    Try the ssh, wait at least 30 seconds (the DNS time out, IIRC). If it
    succeeds then, it's likely DNS related.

    -Jed
    Jed Clear Guest

  4. #3

    Default Re: cna't ssh localhost

    "Eugene M. Minkovskii" <emin@mccme.ru> writes:
    > $ ssh 127.0.0.1
    >
    > But connection hang up, of course, I can't do ssh from gateway
    > (172.16.0.1) to localhost (172.16.0.2) too.
    Try "ssh -v" and let ssh tell you what the problem is.

    It's almost certainly DNS-related, as other messages have mentioned,
    but there are a few possibilities as far as the specifics.

    --
    Lowell Gilbert, embedded/networking software engineer, Boston area
    [url]http://be-well.ilk.org/~lowell/[/url]
    Lowell Gilbert Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139