Find the answer to your Linux question:
Results 1 to 2 of 2
This has really been a head-scratcher for me in the last few days. I created two kvm virtual machines using virt-manager on a host machine with Ubuntu 12.04. The two ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2014
    Posts
    8

    SSH connection closed when running commands with multirow output


    This has really been a head-scratcher for me in the last few days.

    I created two kvm virtual machines using virt-manager on a host machine with Ubuntu 12.04. The two guest OS'es are both CentOS 5.10. The guest OS can successfully ping each other.
    Let's one vm serves as the server and another is the client.

    Basically, I then initiate a ssh session to the server from inside the client. Everything goes well except when I try to run a command with multi-row output in the ssh session. I got the error message as follows:

    "Read from remote host ****: connection reset by the peer."

    In detail, inside the ssh session if I run "ls" in the root directory of the server, the session would freeze and the server side sshd closed the connection. But if I do "ls > tmp" to redirect the multi-row output to a file, the ssh session will still be alive.

    I don't think this is related to tcp_keepalive_time or the ssh timesout. Anyone ever has similar experience? Any advice is greatly appreciated.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,559
    Please show the ssh command line that you are using. Personally, I have never experienced this.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •