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.
- 3 Weeks Ago #1
- Join Date
- Aug 2014
SSH connection closed when running commands with multirow output
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.
- 3 Weeks Ago #2
- Join Date
- Apr 2009
- I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
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!