1

I'm seeing weird freezes when I'm connected to my server (Debian 11) with SSH. My typing stops getting to the server after a while, and after a minute or couple, all my key strokes are applied. So, they are buffered somewhere and applied after a while. This happens really frequently and it is difficulty to get anything done.

Very much appreciated if someone can provide any ideas why this happens and how to debug it.

When the freeze happens, I can open another SSH session to the same server and it works, until it freezes the same way. So, it is not the internet connection that is lost.

My /etc/ssh/ssh_config (/etc/ssh/ssh_config.d/ is empty)

Include /etc/ssh/ssh_config.d/*.conf

Host *
    SendEnv LANG LC_*
    HashKnownHosts yes
    GSSAPIAuthentication yes
    ServerAliveInterval 100

1 Answer 1

3

In order to fix this on RHEL 7.9 we are use to add the following in sshd_config :

UseDNS no
3
  • 1
    Thank you! After this change I did not get any freezes.
    – Mika
    Commented Jul 12, 2022 at 14:30
  • 3
    @mika can you edit your question in order to provide some insight about the distrib you are using ? Thanks
    – admstg
    Commented Jul 12, 2022 at 16:10
  • Why does this help? Commented Mar 14 at 20:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .