ssh freezing randomly

hey guys,

i have a random ssh freezing problem,

here is the thing:

when i type ssh@othernode
the terminal freezes, without saying have alot of fun or anything,
it just freezes

PS:firewalls on both machines are down, public and private keys are successfully and correctly exchanged

so could anyone plz help befor i pull all hair out :slight_smile:

thank u very much
hatem

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

That’s not a valid command… did you mean something more like:

ssh user@othernode

Good luck.

On 02/20/2011 04:06 PM, suseTOMA wrote:
>
> hey guys,
>
> i have a random ssh freezing problem,
>
> here is the thing:
>
> when i type ssh@othernode
> the terminal freezes, without saying have alot of fun or anything,
> it just freezes
>
> PS:firewalls on both machines are down, public and private keys are
> successfully and correctly exchanged
>
> so could anyone plz help befor i pull all hair out :slight_smile:
>
> thank u very much
> hatem
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJNYeSFAAoJEF+XTK08PnB5uPIP+wQNunPP9f82/bLzeJ7nB4L4
q/CSIfL+uY6gM/Ts+MwNFuNCCh53UUVdxn+r3d+FBmfWu3fyiY5LHNc82urYBjQQ
t91wSJ0kh06CePhxCdI1pOiudUyMBrz8IYYuusJqlxjE73gNAgnU7M5bk+d5rzmu
Ks4XuS3SVaxoBvDFoanRSYdBazyNWvSANnMGt1R17/AFauEUqHR19cHEpNsuCK9e
U76lq5e9eWx+cHanJmatZthUHyrUwXcC+ZkkmQp1h8+m6YhUhNCQLrlQwQSt3sUt
lwrD0JpeACxmkf6JfgiDRcRm0kOkwAYNl3aRdMJ4tCLm/u0R2+Cn7xLf5CGVYSZu
N/iqS2Jx4Mj1Uqc+54kEScpO22Zzv1NElctFnjpp40+AwRoYNR64mPrnLXJAMEbS
5mzvweG5qe5HM78DpqzSfAcEUUMvDMerBYgEVFXs6cs4aeo2PImw/grc4ksPv1Vj
zylaxiGWM8/hXKaGTblyDv7nWl4IZJDfA1g/42v1+PYGBwGTEkc2FYG1buVyuugS
u5xxBGWtEvNStoxQgyIAUW0tFdesW1caLEpNS4u3FMZfbf+HfG3fhK5n0FNj5hNQ
PO5P60PACxQPkjCdJ7r3D/t/B5Xj6rVKrKl5XLXno+gew8mtvPvP2xVkQDRFIpK7
9ad7PmEvF2MzoVNNAHzP
=hHIN
-----END PGP SIGNATURE-----

yes i meant that

sorry i was in a hurry :slight_smile:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

When you say it freezes you mean you cannot cancel it? You probably can
with Ctrl+c so what about other things like enabling debugging on the client?

ssh -vvv user@host

Do you see anything on the host size (logs or wire traffic) indicating a
completed connection? Did this ever work? Do other boxes connect properly?

Good luck.

On 02/21/2011 07:36 AM, suseTOMA wrote:
>
> yes i meant that
>
> sorry i was in a hurry :slight_smile:
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJNYqhZAAoJEF+XTK08PnB50G0QAMxFJ9vFXOCOkJ5am15yQcqD
Z/7123mTBHQCgTKdzuvMh5R57crzRxXyYwyzU7rDFAbjNxRiUlxYtOUu81ZQmW1H
xhm/2OeShNM5mc2GNeNFrd0ZCjeSzuavM6speLESRFGSO/c+KGXQIyoPL03M7uNK
XYJjrRmBe+f8N1i8GcLmKXg4mN8bJG60ye2j5d+HT8jxnGqw/MNLYas5f2V9U6V0
KptL4sz44EL1BmzaK0kYF/tymve025kWBjHH6GUkV3BAYUXQ3NXbjWMOdgC/PNaz
BEIqIVNrKkPeVlWKx+dibyu0us1eu/uB4FpuLyHRamjjd15lx2gfvEZ+iZBqQ9VO
ryq0oCcUTjWMsUqP9+xfO3eBZy3o3dBLlNe2eE20fxWDryOsd2qdC1ZX1T4H/LZY
sq2k0Od9e+7UhjCQw/hm0jJVkIAp59OafP8EU+OkH3neN2HAbPZ7UmZC8Y+hSocj
lvatwQMhcngnjy5oazy0zsjrQ2+Bmnk27tRRNEcJl82rxygM38x34ZRSNFCzCvHO
MUxLJBdx4HNnhV/5u9D5PHdGRy1qUCoe/jGt7RvOY9VqK9sh8/nVaHyWFpk/Pqdn
d0RfYgV9fhK5vN+d1gUUkIowmXx65H/wbSicDXWB2BaCpWwI48tExOqc1nLeTk4I
0sAQluwd46sVsCGoLBB5
=XFVY
-----END PGP SIGNATURE-----

It might have something to do with reverse DNS lookup on the server side. I believe you can turn that off in the ssh server somewhere.

I have a vague memory of this happening to me a year or two ago.

Worth having a look at.

/Anders

Try to add:
UseDNS no
in /etc/ssh/sshd_config on the server.

/Anders

done that
nothing happened

yes i can cancel it,
the ssh works with the other boxes
and nothing indicating successful connection

when i type the command ssh node@ip
it just outputs nothing

whats driving me nuts is its randomness
one day u can ssh to node1 the other day u cant

by the way when i ping the malfunctioning nodes, the ping freezes
its wired connection over a switch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Post what was requested, please.

Good luck.

On 02/21/2011 12:06 PM, suseTOMA wrote:
>
> ab;2293229 Wrote:
> When you say it freezes you mean you cannot cancel it? You probably
> can
> with Ctrl+c so what about other things like enabling debugging on the
> client?
>
> ssh -vvv user@host
>
> Do you see anything on the host size (logs or wire traffic) indicating
> a
> completed connection? Did this ever work? Do other boxes connect
> properly?
>
> Good luck.
>
>
>
>
>
> On 02/21/2011 07:36 AM, suseTOMA wrote:
>>>>
>>>> yes i meant that
>>>>
>>>> sorry i was in a hurry :slight_smile:
>>>>
>>>>

> yes i can cancel it,
> the ssh works with the other boxes
> and nothing indicating successful connection

> when i type the command ssh node@ip
> it just outputs nothing

> whats driving me nuts is its randomness
> one day u can ssh to node1 the other day u cant

> by the way when i ping the malfunctioning nodes, the ping freezes
> its wired connection over a switch

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJNYu2eAAoJEF+XTK08PnB5FlcP/R6i/SjRtuNDaHpOwiSon1V+
fqvRvDhiAHD0Yau3kR0lIpiC1laCEVaNJsPjjLjPT39+d4sK1T1bIOpJ6qFBB4yF
Ymjj9npQUsI4PBX+Gzc7V6twaKK+oSGZqWzzkdDxkD+Id1oNL+TJ7P6DACdAcLoz
okOAjEBPhzxkoXo6OGAqP3iwRnfo9sOO5q+XLfWdpL5qKRf2PcqXpm0Gder+24/t
S6UsNkNqtuJh99F50G+pmR0Dm2hzRPxSz0hRBZ9xIV25D4Lx8wfI8lV7tw+R75q8
vKPAtmQ3RIIMAwjzPZLI3UYXJBYi9A17Bi1B4nmvYjEg89Iifn2P8818VyRQ1sdl
1hjEe6c21nm7f6sa8Ej5XBbcSta+RFZd2RhpKS9f+82bLf0FMqvvs2BV/VAxcbKF
xP6E18w0uclxZwqV2NZVlipVqQn8lwdA6W05DGXWlJqKxhiHaCRdJnoMdpQ25EYl
4LQzIqEsMITo9yBlrv1u9cqv/fCE5IM6MeMw+AYpJH5wHZNgYUTi/FPXvWJGq2vj
NBhlU+qycb2AbJh3xn5rqzKGTp5qgcSRku/+8iIJW9ZkGshstXqsCtOK7eKU9cwR
FuBxlRsExPdlP9p2NB+u2jYqjFnTKevyJfGpSrlZOcqG+WdienaSxaJ135R2nFB0
m6G+a8JBr7CcgBFM+vCR
=643A
-----END PGP SIGNATURE-----