• ssh hang after SSH2_MSG_KEXINIT sent

    From chad.risch@gmail.com@21:1/5 to tin...@isbd.co.uk on Thu Oct 18 05:22:56 2018
    On Wednesday, March 14, 2007 at 11:35:12 AM UTC-4, tin...@isbd.co.uk wrote:
    .... but I'm fairly sure it's not an MTU problem and that's the only
    thing I can find using Google.

    Other client connections to the same host work OK, even from ssh
    clients on the same subnet as the ssh client that doesn't work.
    Similarly the ssh client that hangs in this one particular case can
    connect to other ssh host machines. One other Fedora 6 Core client
    machine on the same network *does* show the same problem, an Ubuntu
    and an older Fedora machine don't show the problem.

    The ssh client is OpenSSH_4.3p2 on a Fedora Core 6 installation, the
    host it can't connect to is OpenSSH_4.4p1 on a Slackware 11 machine.


    Having done a google search for this problem I have tried setting the
    MTU to 576 on both client and host, no effect at all. (I simply did 'ifconfig eth0 mtu 576' on both machines as root, is this all that's
    needed?)


    The client debug reads as follows:-

    debug3: key_read: missing whitespace
    debug3: key_read: missing whitespace
    debug3: key_read: missing whitespace
    debug3: key_read: missing whitespace
    debug3: key_read: missing whitespace
    debug3: key_read: missing whitespace
    debug3: key_read: missing whitespace
    debug3: key_read: missing whitespace
    debug3: key_read: missing whitespace
    debug3: key_read: missing whitespace
    debug2: key_type_from_name: unknown key type '-----END'
    debug3: key_read: missing keytype
    debug1: identity file /home/chris/.ssh/id_dsa type 2
    debug1: Remote protocol version 1.99, remote software version OpenSSH_4.4
    debug1: match: OpenSSH_4.4 pat OpenSSH*
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_4.3
    debug2: fd 3 setting O_NONBLOCK
    debug1: SSH2_MSG_KEXINIT sent
    Read from socket failed: Connection reset by peer

    There's a long (minutes) pause after the SSH2_MSG_KEXINIT sent.

    Does anyone have any suggestions as to what might be the problem?

    --
    Chris Green

    I had the same issue. My problem turned out to be a flaky cdc_ether driver on my USB Network Adapter. Once I took it out of the equation everything worked like a champ.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From mmoreliere@kertel.com@21:1/5 to All on Wed Feb 27 06:13:22 2019
    I had the same issue with pfsense 2.4.4

    I have to uncheck Disable Firewall Scrub in System > Advanced > Firewall & NAT

    to make it work

    Le mercredi 14 mars 2007 16:35:12 UTC+1, tin...@isbd.co.uk a écrit :
    .... but I'm fairly sure it's not an MTU problem and that's the only
    thing I can find using Google.

    Other client connections to the same host work OK, even from ssh
    clients on the same subnet as the ssh client that doesn't work.
    Similarly the ssh client that hangs in this one particular case can
    connect to other ssh host machines. One other Fedora 6 Core client
    machine on the same network *does* show the same problem, an Ubuntu
    and an older Fedora machine don't show the problem.

    The ssh client is OpenSSH_4.3p2 on a Fedora Core 6 installation, the
    host it can't connect to is OpenSSH_4.4p1 on a Slackware 11 machine.


    Having done a google search for this problem I have tried setting the
    MTU to 576 on both client and host, no effect at all. (I simply did 'ifconfig eth0 mtu 576' on both machines as root, is this all that's
    needed?)


    The client debug reads as follows:-

    debug3: key_read: missing whitespace
    debug3: key_read: missing whitespace
    debug3: key_read: missing whitespace
    debug3: key_read: missing whitespace
    debug3: key_read: missing whitespace
    debug3: key_read: missing whitespace
    debug3: key_read: missing whitespace
    debug3: key_read: missing whitespace
    debug3: key_read: missing whitespace
    debug3: key_read: missing whitespace
    debug2: key_type_from_name: unknown key type '-----END'
    debug3: key_read: missing keytype
    debug1: identity file /home/chris/.ssh/id_dsa type 2
    debug1: Remote protocol version 1.99, remote software version OpenSSH_4.4
    debug1: match: OpenSSH_4.4 pat OpenSSH*
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_4.3
    debug2: fd 3 setting O_NONBLOCK
    debug1: SSH2_MSG_KEXINIT sent
    Read from socket failed: Connection reset by peer

    There's a long (minutes) pause after the SSH2_MSG_KEXINIT sent.

    Does anyone have any suggestions as to what might be the problem?

    --
    Chris Green

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)