ssh hangs forever when command argument is appended The Next CEO of Stack OverflowSSH...

How to make a variable always equal to the result of some calculations?

Increase performance creating Mandelbrot set in python

Opposite of a diet

Fastest way to shutdown Ubuntu Mate 18.10

Anatomically Correct Mesopelagic Aves

Are there languages with no euphemisms?

Can I equip Skullclamp on a creature I am sacrificing?

Term for the "extreme-extension" version of a straw man fallacy?

How to count occurrences of text in a file?

Can a caster that cast Polymorph on themselves stop concentrating at any point even if their Int is low?

How did people program for Consoles with multiple CPUs?

Unreliable Magic - Is it worth it?

Only print output after finding pattern

Inappropriate reference requests from Journal reviewers

Can a single photon have an energy density?

Why didn't Theresa May consult with Parliament before negotiating a deal with the EU?

Why doesn't a table tennis ball float on the surface? How do we calculate buoyancy here?

Too much space between section and text in a twocolumn document

Can the Reverse Gravity spell affect the Meteor Swarm spell?

Grabbing quick drinks

The King's new dress

How to write the block matrix in LaTex?

What is the purpose of the Evocation wizard's Potent Cantrip feature?

What makes a siege story/plot interesting?



ssh hangs forever when command argument is appended



The Next CEO of Stack OverflowSSH passwordless authentication failuressh can't use key, but password worksssh session timeout using openssh clientOpenSSH: Slow typing speed when in pseudo terminalCore temperature above threshold cpu clock throttled while upgrading gcc compilerUnable to ssh to EC2 from Ubutnu(connection times out)What means dispatch_protocol_error: type 51 seq 5 when ssh connection fails and how to solve it?SSH fails with host key error when sending a command, but works without onessh channel hangs after authenticationsftp from Windows-10-v-1803 into WSL Ubuntu-18.04 ssh-server… won't connect












0















My ssh stucks when I try to connect my company's server using ssh with additional command argument appended like this:



ssh user@ip 'ls'


the ssh stucks forever after I type the password, here is tail of the output information of the above ssh command with addtional -vvv flag



debug2: exec request accepted on channel 0
debug2: channel 0: rcvd ext data 52
debug2: channel 0: rcvd ext data 22
Fingerprint: C0 8D 7C 47 96 30 23 54 EB 10 D2 E8 BB 89 FA 18 0F 50 97 4A
debug2: channel 0: written 74 to efd 6
debug2: channel 0: rcvd ext data 72
Authentication methods: publickey,gssapi-keyex,gssapi-with-mic,password
debug2: channel 0: written 72 to efd 6
debug2: channel 0: rcvd ext data 21
libssh2_sftp_init()!
debug2: channel 0: written 21 to efd 6


The terminal won't continue after the line with libssh2_sftp_init()! shows when not in debug mode.



It only happenes when my laptop tries to connect the server. if I issued the ssh command above in my server to connect my laptop, I can get the result of ls executed in my laptop from server terminal, also each one can connect to itself without any problem using the exatly the same command above.



The version of os and ssh of the server:



Linux version 2.6.32-696.10.2.el6.x86_64 (mockbuild@x86-033.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC) ) #1 SMP Sun Sep 10` 11:10:44 EDT 2017

OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013


The version of os(using windows subsystem linux) and ssh of my laptop:



Linux version 4.4.0-17134-Microsoft (Microsoft@Microsoft.com) (gcc version 5.4.0 (GCC) ) #648-Microsoft Tue Mar 05 18:57:00 PST 2019

Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic

OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017


I have tried to install the ssh to match the server's version, but it did't solve the problem.



I hope someone can understand what I try to say and tell me why does this happenes and how can solve it ?









share







New contributor




Chen Xiao Yu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    My ssh stucks when I try to connect my company's server using ssh with additional command argument appended like this:



    ssh user@ip 'ls'


    the ssh stucks forever after I type the password, here is tail of the output information of the above ssh command with addtional -vvv flag



    debug2: exec request accepted on channel 0
    debug2: channel 0: rcvd ext data 52
    debug2: channel 0: rcvd ext data 22
    Fingerprint: C0 8D 7C 47 96 30 23 54 EB 10 D2 E8 BB 89 FA 18 0F 50 97 4A
    debug2: channel 0: written 74 to efd 6
    debug2: channel 0: rcvd ext data 72
    Authentication methods: publickey,gssapi-keyex,gssapi-with-mic,password
    debug2: channel 0: written 72 to efd 6
    debug2: channel 0: rcvd ext data 21
    libssh2_sftp_init()!
    debug2: channel 0: written 21 to efd 6


    The terminal won't continue after the line with libssh2_sftp_init()! shows when not in debug mode.



    It only happenes when my laptop tries to connect the server. if I issued the ssh command above in my server to connect my laptop, I can get the result of ls executed in my laptop from server terminal, also each one can connect to itself without any problem using the exatly the same command above.



    The version of os and ssh of the server:



    Linux version 2.6.32-696.10.2.el6.x86_64 (mockbuild@x86-033.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC) ) #1 SMP Sun Sep 10` 11:10:44 EDT 2017

    OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013


    The version of os(using windows subsystem linux) and ssh of my laptop:



    Linux version 4.4.0-17134-Microsoft (Microsoft@Microsoft.com) (gcc version 5.4.0 (GCC) ) #648-Microsoft Tue Mar 05 18:57:00 PST 2019

    Distributor ID: Ubuntu
    Description: Ubuntu 18.04.2 LTS
    Release: 18.04
    Codename: bionic

    OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017


    I have tried to install the ssh to match the server's version, but it did't solve the problem.



    I hope someone can understand what I try to say and tell me why does this happenes and how can solve it ?









    share







    New contributor




    Chen Xiao Yu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      My ssh stucks when I try to connect my company's server using ssh with additional command argument appended like this:



      ssh user@ip 'ls'


      the ssh stucks forever after I type the password, here is tail of the output information of the above ssh command with addtional -vvv flag



      debug2: exec request accepted on channel 0
      debug2: channel 0: rcvd ext data 52
      debug2: channel 0: rcvd ext data 22
      Fingerprint: C0 8D 7C 47 96 30 23 54 EB 10 D2 E8 BB 89 FA 18 0F 50 97 4A
      debug2: channel 0: written 74 to efd 6
      debug2: channel 0: rcvd ext data 72
      Authentication methods: publickey,gssapi-keyex,gssapi-with-mic,password
      debug2: channel 0: written 72 to efd 6
      debug2: channel 0: rcvd ext data 21
      libssh2_sftp_init()!
      debug2: channel 0: written 21 to efd 6


      The terminal won't continue after the line with libssh2_sftp_init()! shows when not in debug mode.



      It only happenes when my laptop tries to connect the server. if I issued the ssh command above in my server to connect my laptop, I can get the result of ls executed in my laptop from server terminal, also each one can connect to itself without any problem using the exatly the same command above.



      The version of os and ssh of the server:



      Linux version 2.6.32-696.10.2.el6.x86_64 (mockbuild@x86-033.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC) ) #1 SMP Sun Sep 10` 11:10:44 EDT 2017

      OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013


      The version of os(using windows subsystem linux) and ssh of my laptop:



      Linux version 4.4.0-17134-Microsoft (Microsoft@Microsoft.com) (gcc version 5.4.0 (GCC) ) #648-Microsoft Tue Mar 05 18:57:00 PST 2019

      Distributor ID: Ubuntu
      Description: Ubuntu 18.04.2 LTS
      Release: 18.04
      Codename: bionic

      OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017


      I have tried to install the ssh to match the server's version, but it did't solve the problem.



      I hope someone can understand what I try to say and tell me why does this happenes and how can solve it ?









      share







      New contributor




      Chen Xiao Yu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      My ssh stucks when I try to connect my company's server using ssh with additional command argument appended like this:



      ssh user@ip 'ls'


      the ssh stucks forever after I type the password, here is tail of the output information of the above ssh command with addtional -vvv flag



      debug2: exec request accepted on channel 0
      debug2: channel 0: rcvd ext data 52
      debug2: channel 0: rcvd ext data 22
      Fingerprint: C0 8D 7C 47 96 30 23 54 EB 10 D2 E8 BB 89 FA 18 0F 50 97 4A
      debug2: channel 0: written 74 to efd 6
      debug2: channel 0: rcvd ext data 72
      Authentication methods: publickey,gssapi-keyex,gssapi-with-mic,password
      debug2: channel 0: written 72 to efd 6
      debug2: channel 0: rcvd ext data 21
      libssh2_sftp_init()!
      debug2: channel 0: written 21 to efd 6


      The terminal won't continue after the line with libssh2_sftp_init()! shows when not in debug mode.



      It only happenes when my laptop tries to connect the server. if I issued the ssh command above in my server to connect my laptop, I can get the result of ls executed in my laptop from server terminal, also each one can connect to itself without any problem using the exatly the same command above.



      The version of os and ssh of the server:



      Linux version 2.6.32-696.10.2.el6.x86_64 (mockbuild@x86-033.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC) ) #1 SMP Sun Sep 10` 11:10:44 EDT 2017

      OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013


      The version of os(using windows subsystem linux) and ssh of my laptop:



      Linux version 4.4.0-17134-Microsoft (Microsoft@Microsoft.com) (gcc version 5.4.0 (GCC) ) #648-Microsoft Tue Mar 05 18:57:00 PST 2019

      Distributor ID: Ubuntu
      Description: Ubuntu 18.04.2 LTS
      Release: 18.04
      Codename: bionic

      OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017


      I have tried to install the ssh to match the server's version, but it did't solve the problem.



      I hope someone can understand what I try to say and tell me why does this happenes and how can solve it ?







      linux command-line ssh





      share







      New contributor




      Chen Xiao Yu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      Chen Xiao Yu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      Chen Xiao Yu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 9 mins ago









      Chen Xiao YuChen Xiao Yu

      1




      1




      New contributor




      Chen Xiao Yu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Chen Xiao Yu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Chen Xiao Yu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          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
          });


          }
          });






          Chen Xiao Yu is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1418889%2fssh-hangs-forever-when-command-argument-is-appended%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Chen Xiao Yu is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Chen Xiao Yu is a new contributor. Be nice, and check out our Code of Conduct.













          Chen Xiao Yu is a new contributor. Be nice, and check out our Code of Conduct.












          Chen Xiao Yu is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Super User!


          • 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%2fsuperuser.com%2fquestions%2f1418889%2fssh-hangs-forever-when-command-argument-is-appended%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

          VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

          Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

          Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...