All too often, my ssh session will freeze. I'm fairly certain the problem is at my end. None of the tilde commands work. In particular, ~# and ~. are nonfunctional. I can write to ssh's terminal window from another terminal window. If I kill the ssh process, I can ssh in again. The next time it happens, I will try another ssh session without killing the first one. dmesg did not show me anything interesting. Any suggestions on how to diagnose? -- Michael hennebry at web.cs.ndsu.NoDak.edu "Sorry but your password must contain an uppercase letter, a number, a haiku, a gang sign, a heiroglyph, and the blood of a virgin." -- someeecards
On 10/26/2015 10:28 AM, Michael Hennebry wrote:> > All too often, my ssh session will freeze. > I'm fairly certain the problem is at my end. > None of the tilde commands work. > In particular, ~# and ~. are nonfunctional. > I can write to ssh's terminal window from another terminal window. > If I kill the ssh process, I can ssh in again. > The next time it happens, > I will try another ssh session without killing the first one. > dmesg did not show me anything interesting. > > Any suggestions on how to diagnose?what OS/version are you ssh'ing from? what version of ssh is installed on this? [1] what OS/version are you ssh'ing to? what version of sshd is installed on this? [2] what network media is between these two hosts? anything out of the ordinary in the setup? [1] rpm -q openssh-clients - assuming this is a recent centos [2] rpm -q openssh-server '' '' -- john r pierce, recycling bits in santa cruz
On Mon, 26 Oct 2015, John R Pierce wrote:> On 10/26/2015 10:28 AM, Michael Hennebry wrote: >> >> All too often, my ssh session will freeze. >> I'm fairly certain the problem is at my end. >> None of the tilde commands work. >> In particular, ~# and ~. are nonfunctional. >> I can write to ssh's terminal window from another terminal window. >> If I kill the ssh process, I can ssh in again. >> The next time it happens, >> I will try another ssh session without killing the first one. >> dmesg did not show me anything interesting. >> >> Any suggestions on how to diagnose? > > what OS/version are you ssh'ing from? what version of ssh is installed on > this? [1]openssh-clients-5.3p1-111.el6.x86_64> what OS/version are you ssh'ing to? what version of sshd is installed on > this? [2]rpm not installed uname -a Linux mail 2.6.24-28-generic #1 SMP Fri Feb 11 17:36:45 UTC 2011 i686 GNU/Linux mail.cs.ndsu.nodak.edu is not controlled by me.> what network media is between these two hosts? anything out of the ordinary > in the setup?Ethernet connection to CenturyLink router/DSL-modem. I hadn't thought to check for anything interesting on the router. I'll do that the next time it happens. -- Michael hennebry at web.cs.ndsu.NoDak.edu "Sorry but your password must contain an uppercase letter, a number, a haiku, a gang sign, a heiroglyph, and the blood of a virgin." -- someeecards
On 10/26/2015 01:28 PM, Michael Hennebry wrote:> > All too often, my ssh session will freeze. > I'm fairly certain the problem is at my end. > None of the tilde commands work. > In particular, ~# and ~. are nonfunctional. > I can write to ssh's terminal window from another terminal window. > If I kill the ssh process, I can ssh in again. > The next time it happens, > I will try another ssh session without killing the first one. > dmesg did not show me anything interesting. > > Any suggestions on how to diagnose? >I had this a lot until I added to /etc/ssh/ssh_config ServerAliveInterval 15 Now I rarely get it.
On Mon, 26 Oct 2015, Robert Moskowitz wrote:> On 10/26/2015 01:28 PM, Michael Hennebry wrote: >> >> All too often, my ssh session will freeze. >> I'm fairly certain the problem is at my end.>> Any suggestions on how to diagnose? >> > I had this a lot until I added to /etc/ssh/ssh_config > > ServerAliveInterval 15Did it complain at all? Mine does not, it just freezes. I can start another ssh session with the first one frozen. -- Michael hennebry at web.cs.ndsu.NoDak.edu "Sorry but your password must contain an uppercase letter, a number, a haiku, a gang sign, a heiroglyph, and the blood of a virgin." -- someeecards
On Mon, 26 Oct 2015, Robert Moskowitz wrote:> On 10/26/2015 01:28 PM, Michael Hennebry wrote: >> >> All too often, my ssh session will freeze. >> I'm fairly certain the problem is at my end. >> None of the tilde commands work. >> In particular, ~# and ~. are nonfunctional. >> I can write to ssh's terminal window from another terminal window. >> If I kill the ssh process, I can ssh in again. >> The next time it happens, >> I will try another ssh session without killing the first one. >> dmesg did not show me anything interesting. >> >> Any suggestions on how to diagnose? >> > I had this a lot until I added to /etc/ssh/ssh_config > > ServerAliveInterval 15 > > Now I rarely get it.That seems to have done the trick for me. -- Michael hennebry at web.cs.ndsu.NoDak.edu "Sorry but your password must contain an uppercase letter, a number, a haiku, a gang sign, a heiroglyph, and the blood of a virgin." -- someeecards