SSH “lag” in LAN on some machines, mixed distrosssh works fine when using public interface, but slow when using private interfacehow to disable SSH login with password for some users?ssh + along delay after typing the password between win to linuxSSH/SFTP connections fails silently on OSX 10.8.2 - ssh-agent issueFilezilla/Puttygen doesn't recognize private key fileSporadic “ssh_exchange_identification: read: Connection reset by peer” ErrorLocal port forwarding and Putty connectionOpenSSH server on Windows refusing to work without STDIN even in noninteractive modessh -N steals keystrokesproblems with ssh connection: sometimes succesfull/sometimes timeout/sometimes hangs

Is it legal for company to use my work email to pretend I still work there?

Intersection of two sorted vectors in C++

I'm flying to France today and my passport expires in less than 2 months

What do you call someone who asks many questions?

How could indestructible materials be used in power generation?

What reasons are there for a Capitalist to oppose a 100% inheritance tax?

Does a druid starting with a bow start with no arrows?

Watching something be written to a file live with tail

How many spell slots should my level 1 wizard/level 1 fighter have?

Why is the 'in' operator throwing an error with a string literal instead of logging false?

Is it possible to create light that imparts a greater proportion of its energy as momentum rather than heat?

Should I tell management that I intend to leave due to bad software development practices?

Why does Kotter return in Welcome Back Kotter?

Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?

Assassin's bullet with mercury

What's the difference between 'rename' and 'mv'?

SSH "lag" in LAN on some machines, mixed distros

How do I write bicross product symbols in latex?

How to draw the figure with four pentagons?

Is "remove commented out code" correct English?

What about the virus in 12 Monkeys?

How can I fix/modify my tub/shower combo so the water comes out of the showerhead?

Is it unprofessional to ask if a job posting on GlassDoor is real?

Why is consensus so controversial in Britain?



SSH “lag” in LAN on some machines, mixed distros


ssh works fine when using public interface, but slow when using private interfacehow to disable SSH login with password for some users?ssh + along delay after typing the password between win to linuxSSH/SFTP connections fails silently on OSX 10.8.2 - ssh-agent issueFilezilla/Puttygen doesn't recognize private key fileSporadic “ssh_exchange_identification: read: Connection reset by peer” ErrorLocal port forwarding and Putty connectionOpenSSH server on Windows refusing to work without STDIN even in noninteractive modessh -N steals keystrokesproblems with ssh connection: sometimes succesfull/sometimes timeout/sometimes hangs






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








3















I've had a strange problem with SSH connections inside my LAN for a few months. It only happens when I'm using my Windows 10 device to connect to a (barebone) linux machine.



When I connect to a SSH server it's like my input is only sent once every second. If I hold a key, it doesn't print anything for a second and after that second I see every keystroke I did during that time.



This is how it looks on the working servers:



This is how it looks on the ones with the issue:



Things I have tested/found out



  • Changing the "UseDNS" setting in /etc/sshd doesn't fix it

  • It happens with bash (and zsh) on Debian (OpenSSH_7.4p1 Debian-10+deb9u6, OpenSSL 1.0.2r 26 Feb 2019) and Ash on Alpine Linux (OpenSSH_7.9p1, OpenSSL 1.1.1b 26 Feb 2019)

  • It doesn't happen on Alpine Linux OpenSSH_7.7p1, LibreSSL 2.7.4

  • It doesn't happen with every machine, just some (not depending on the distro)

  • resolv.conf is correct

  • Error happens with and without ClientAliveInterval (tested on client and server)

  • Pinging the devices is always fast (less than 1 ms) so it's only SSH

  • It also lags when I ssh from the linux subsystem on Windows 10 and with Putty and with MobaXterm

  • No problems when I connect from Linux instead of Windows

Does anyone have any clues or things I could try?
Thanks










share|improve this question




























    3















    I've had a strange problem with SSH connections inside my LAN for a few months. It only happens when I'm using my Windows 10 device to connect to a (barebone) linux machine.



    When I connect to a SSH server it's like my input is only sent once every second. If I hold a key, it doesn't print anything for a second and after that second I see every keystroke I did during that time.



    This is how it looks on the working servers:



    This is how it looks on the ones with the issue:



    Things I have tested/found out



    • Changing the "UseDNS" setting in /etc/sshd doesn't fix it

    • It happens with bash (and zsh) on Debian (OpenSSH_7.4p1 Debian-10+deb9u6, OpenSSL 1.0.2r 26 Feb 2019) and Ash on Alpine Linux (OpenSSH_7.9p1, OpenSSL 1.1.1b 26 Feb 2019)

    • It doesn't happen on Alpine Linux OpenSSH_7.7p1, LibreSSL 2.7.4

    • It doesn't happen with every machine, just some (not depending on the distro)

    • resolv.conf is correct

    • Error happens with and without ClientAliveInterval (tested on client and server)

    • Pinging the devices is always fast (less than 1 ms) so it's only SSH

    • It also lags when I ssh from the linux subsystem on Windows 10 and with Putty and with MobaXterm

    • No problems when I connect from Linux instead of Windows

    Does anyone have any clues or things I could try?
    Thanks










    share|improve this question
























      3












      3








      3








      I've had a strange problem with SSH connections inside my LAN for a few months. It only happens when I'm using my Windows 10 device to connect to a (barebone) linux machine.



      When I connect to a SSH server it's like my input is only sent once every second. If I hold a key, it doesn't print anything for a second and after that second I see every keystroke I did during that time.



      This is how it looks on the working servers:



      This is how it looks on the ones with the issue:



      Things I have tested/found out



      • Changing the "UseDNS" setting in /etc/sshd doesn't fix it

      • It happens with bash (and zsh) on Debian (OpenSSH_7.4p1 Debian-10+deb9u6, OpenSSL 1.0.2r 26 Feb 2019) and Ash on Alpine Linux (OpenSSH_7.9p1, OpenSSL 1.1.1b 26 Feb 2019)

      • It doesn't happen on Alpine Linux OpenSSH_7.7p1, LibreSSL 2.7.4

      • It doesn't happen with every machine, just some (not depending on the distro)

      • resolv.conf is correct

      • Error happens with and without ClientAliveInterval (tested on client and server)

      • Pinging the devices is always fast (less than 1 ms) so it's only SSH

      • It also lags when I ssh from the linux subsystem on Windows 10 and with Putty and with MobaXterm

      • No problems when I connect from Linux instead of Windows

      Does anyone have any clues or things I could try?
      Thanks










      share|improve this question














      I've had a strange problem with SSH connections inside my LAN for a few months. It only happens when I'm using my Windows 10 device to connect to a (barebone) linux machine.



      When I connect to a SSH server it's like my input is only sent once every second. If I hold a key, it doesn't print anything for a second and after that second I see every keystroke I did during that time.



      This is how it looks on the working servers:



      This is how it looks on the ones with the issue:



      Things I have tested/found out



      • Changing the "UseDNS" setting in /etc/sshd doesn't fix it

      • It happens with bash (and zsh) on Debian (OpenSSH_7.4p1 Debian-10+deb9u6, OpenSSL 1.0.2r 26 Feb 2019) and Ash on Alpine Linux (OpenSSH_7.9p1, OpenSSL 1.1.1b 26 Feb 2019)

      • It doesn't happen on Alpine Linux OpenSSH_7.7p1, LibreSSL 2.7.4

      • It doesn't happen with every machine, just some (not depending on the distro)

      • resolv.conf is correct

      • Error happens with and without ClientAliveInterval (tested on client and server)

      • Pinging the devices is always fast (less than 1 ms) so it's only SSH

      • It also lags when I ssh from the linux subsystem on Windows 10 and with Putty and with MobaXterm

      • No problems when I connect from Linux instead of Windows

      Does anyone have any clues or things I could try?
      Thanks







      linux ssh windows-10 putty lag






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 11 hours ago









      ChristianChristian

      93416




      93416




















          1 Answer
          1






          active

          oldest

          votes


















          7














          Typically this is a sign of Nagle's algorithm, you can turn that socket option off.



          (I have seen similar TCP delays between Linux and Windows before in other cases as well. In one case it was caused by interactions between TCP Windows sizes and PSH (Push) flags which caused Windows to acknowledge late and/or retry.)






          share|improve this answer

























          • Awesome, thanks for that quick fix! In the Putty settings I unchecked the "Disable Nagle's algorithm" checkbox (which seems to be ticked by default) and now it works!

            – Christian
            10 hours ago











          • @Christian thanks for confirmation, I simplified my answer a bit

            – eckes
            10 hours ago











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "2"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f961576%2fssh-lag-in-lan-on-some-machines-mixed-distros%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          7














          Typically this is a sign of Nagle's algorithm, you can turn that socket option off.



          (I have seen similar TCP delays between Linux and Windows before in other cases as well. In one case it was caused by interactions between TCP Windows sizes and PSH (Push) flags which caused Windows to acknowledge late and/or retry.)






          share|improve this answer

























          • Awesome, thanks for that quick fix! In the Putty settings I unchecked the "Disable Nagle's algorithm" checkbox (which seems to be ticked by default) and now it works!

            – Christian
            10 hours ago











          • @Christian thanks for confirmation, I simplified my answer a bit

            – eckes
            10 hours ago















          7














          Typically this is a sign of Nagle's algorithm, you can turn that socket option off.



          (I have seen similar TCP delays between Linux and Windows before in other cases as well. In one case it was caused by interactions between TCP Windows sizes and PSH (Push) flags which caused Windows to acknowledge late and/or retry.)






          share|improve this answer

























          • Awesome, thanks for that quick fix! In the Putty settings I unchecked the "Disable Nagle's algorithm" checkbox (which seems to be ticked by default) and now it works!

            – Christian
            10 hours ago











          • @Christian thanks for confirmation, I simplified my answer a bit

            – eckes
            10 hours ago













          7












          7








          7







          Typically this is a sign of Nagle's algorithm, you can turn that socket option off.



          (I have seen similar TCP delays between Linux and Windows before in other cases as well. In one case it was caused by interactions between TCP Windows sizes and PSH (Push) flags which caused Windows to acknowledge late and/or retry.)






          share|improve this answer















          Typically this is a sign of Nagle's algorithm, you can turn that socket option off.



          (I have seen similar TCP delays between Linux and Windows before in other cases as well. In one case it was caused by interactions between TCP Windows sizes and PSH (Push) flags which caused Windows to acknowledge late and/or retry.)







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 54 mins ago









          Solomon Ucko

          1054




          1054










          answered 10 hours ago









          eckeseckes

          666516




          666516












          • Awesome, thanks for that quick fix! In the Putty settings I unchecked the "Disable Nagle's algorithm" checkbox (which seems to be ticked by default) and now it works!

            – Christian
            10 hours ago











          • @Christian thanks for confirmation, I simplified my answer a bit

            – eckes
            10 hours ago

















          • Awesome, thanks for that quick fix! In the Putty settings I unchecked the "Disable Nagle's algorithm" checkbox (which seems to be ticked by default) and now it works!

            – Christian
            10 hours ago











          • @Christian thanks for confirmation, I simplified my answer a bit

            – eckes
            10 hours ago
















          Awesome, thanks for that quick fix! In the Putty settings I unchecked the "Disable Nagle's algorithm" checkbox (which seems to be ticked by default) and now it works!

          – Christian
          10 hours ago





          Awesome, thanks for that quick fix! In the Putty settings I unchecked the "Disable Nagle's algorithm" checkbox (which seems to be ticked by default) and now it works!

          – Christian
          10 hours ago













          @Christian thanks for confirmation, I simplified my answer a bit

          – eckes
          10 hours ago





          @Christian thanks for confirmation, I simplified my answer a bit

          – eckes
          10 hours ago

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Server Fault!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f961576%2fssh-lag-in-lan-on-some-machines-mixed-distros%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to create a command for the “strange m” symbol in latex? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)How do you make your own symbol when Detexify fails?Writing bold small caps with mathpazo packageplus-minus symbol with parenthesis around the minus signGreek character in Beamer document titleHow to create dashed right arrow over symbol?Currency symbol: Turkish LiraDouble prec as a single symbol?Plus Sign Too Big; How to Call adfbullet?Is there a TeX macro for three-legged pi?How do I get my integral-like symbol to align like the integral?How to selectively substitute a letter with another symbol representing the same letterHow do I generate a less than symbol and vertical bar that are the same height?

          Българска екзархия Съдържание История | Български екзарси | Вижте също | Външни препратки | Литература | Бележки | НавигацияУстав за управлението на българската екзархия. Цариград, 1870Слово на Ловешкия митрополит Иларион при откриването на Българския народен събор в Цариград на 23. II. 1870 г.Българската правда и гръцката кривда. От С. М. (= Софийски Мелетий). Цариград, 1872Предстоятели на Българската екзархияПодмененият ВеликденИнформационна агенция „Фокус“Димитър Ризов. Българите в техните исторически, етнографически и политически граници (Атлас съдържащ 40 карти). Berlin, Königliche Hoflithographie, Hof-Buch- und -Steindruckerei Wilhelm Greve, 1917Report of the International Commission to Inquire into the Causes and Conduct of the Balkan Wars

          Category:Tremithousa Media in category "Tremithousa"Navigation menuUpload media34° 49′ 02.7″ N, 32° 26′ 37.32″ EOpenStreetMapGoogle EarthProximityramaReasonatorScholiaStatisticsWikiShootMe