Re: OpenSSH Always Hangs When Connecting to Remote

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



On Mon, Sep 21, 2015 at 6:05 AM, Ángel González <keisial@xxxxxxxxx> wrote:
>
> New versions tend to add more key exchanges, so yes. You can also use
> ssh -o KexAlgorithms=<algos use by dropbear> to test the hypothesis.
>

Note that this is not a definitive test because the server will still offer
its full list of key exchange and cipher methods, so depending on exactly
what and where the problem is, this could still potentially tickle MTU
blackhole problems.  You'd need to restrict the OpenSSH
server's KexAlgorithms, HostKeyAlgorithms, Ciphers and Compression settings
for an accurate test, and note that this configuration would be
significantly less safe than OpenSSH's defaults.

I'd try the MTU thing in the link I sent you.  Alternatively, if you have
access to both ends via some other means, find the ssh connection in the
output of "netstat" on both sides and check if the SendQ column stays
non-zero indicating that the network traffic never get acknowledged.

$ telnet openssh 22
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
SSH-2.0-OpenSSH_7.1
SSH-2.0-me
t �?�� �P6���}:�
Ydiffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1'ssh-rsa,ecdsa-sha2-nistp256,
ssh-ed25519lchacha20-poly1305@xxxxxxxxxxx,aes128-ctr,aes192-ctr,aes256-ctr,
aes128-gcm@xxxxxxxxxxx,aes256-gcm@openssh.comlchacha20-poly1305@xxxxxxxxxxx
,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@xxxxxxxxxxx,
aes256-gcm@xxxxxxxxxxx�umac-64-etm@xxxxxxxxxxx,umac-128-etm@xxxxxxxxxxx,
hmac-sha2-256-etm@xxxxxxxxxxx,hmac-sha2-512-etm@xxxxxxxxxxx,
hmac-sha1-etm@xxxxxxxxxxx,umac-64@xxxxxxxxxxx,umac-128@xxxxxxxxxxx
,hmac-sha2-256,hmac-sha2-512,hmac-sha1�umac-64-etm@xxxxxxxxxxx,
umac-128-etm@xxxxxxxxxxx,hmac-sha2-256-etm@xxxxxxxxxxx,
hmac-sha2-512-etm@xxxxxxxxxxx,hmac-sha1-etm@xxxxxxxxxxx,umac-64@xxxxxxxxxxx,
umac-128@xxxxxxxxxxx,hmac-sha2-256,hmac-sha2-512,hmac-sha1 none,
zlib@xxxxxxxxxxx none,zlib@xxxxxxxxxxx
^]
telnet> quit
Connection closed

$ telnet dropear 22
Trying 192.168.34.1...
Connected to rtr.
Escape character is '^]'.
SSH-2.0-dropbear_0.46
SSH-2.0-me
�� �Hlm�O�)d��8� diffie-hellman-group1-sha1ssh-rs3des-cb3des-cbc
hmac-sha1,hmac-md5 hmac-sha1,hmac-md5 none none �h8u��!
^]
telnet> quit
Connection closed

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev




[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux