Hello
My ssh terminal froze some times, and I was thinking it might be related to centos , but now I found that even ubuntu users experiencing the same problem.
does ssh logs any where, and what do you suggest for finding the cause.
Thanks
2007/12/12, Centos centos@unixplanet.biz:
My ssh terminal froze some times, and I was thinking it might be related to centos , but now I found that even ubuntu users experiencing the same problem.
Is there a firewall between your client and the server (that kills the session after inactivity)? Try the keep alive option.
cheers Simon
I've had problems with xterm locking up. It seems related to using ascii colors.
At first I thought it was an ssh problem because it mostly happened on remote machines, but then it started happening locally too.
we are using iptables, but as far as I know there is no timeout set on our iptables.
this is happening sporadically.
I thought that if it is related to network we will receive some kind of connection error and not freezing screen.
Thanks for help
Simon Jolle wrote:
2007/12/12, Centos centos@unixplanet.biz:
My ssh terminal froze some times, and I was thinking it might be related to centos , but now I found that even ubuntu users experiencing the same problem.
Is there a firewall between your client and the server (that kills the session after inactivity)? Try the keep alive option.
cheers Simon
-- This message has been scanned for viruses and dangerous content by *MailScanner* http://www.mailscanner.info/, and is believed to be clean.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Centos wrote:
we are using iptables, but as far as I know there is no timeout set on our iptables.
this is happening sporadically.
I thought that if it is related to network we will receive some kind of connection error and not freezing screen.
Thanks for help
Simon Jolle wrote:
2007/12/12, Centos centos@unixplanet.biz:
My ssh terminal froze some times, and I was thinking it might be related to centos , but now I found that even ubuntu users experiencing the same problem.
Is there a firewall between your client and the server (that kills the session after inactivity)? Try the keep alive option.
cheers Simon
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Hi just as a question is anyone actually restarting sshd on the machine that you see this? Because often the SSH rule is set up for new connections, and I have seen existing ssh drop because of this.
Have a nice day :)
On Dec 12, 2007 2:45 PM, Centos centos@unixplanet.biz wrote:
Hello
My ssh terminal froze some times, and I was thinking it might be related to centos , but now I found that even ubuntu users experiencing the same problem.
does ssh logs any where, and what do you suggest for finding the cause.
I suffer this kind of problem using putty for long time now. The terminal freeze for about 45s to 3min. Other putty session are still working. I got this for 2 or 3 years now, on about all RedHat distribution and clone from RH Linux 8.0 and on a lot of different network infrastructure, with different hardware. The most common part is WinXP and putty, but in all version and service pack.
My workaround is : patience :-(
Thanks _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Dec 12, 2007 7:21 PM, Alain Spineux aspineux@gmail.com wrote:
On Dec 12, 2007 2:45 PM, Centos centos@unixplanet.biz wrote:
Hello
My ssh terminal froze some times, and I was thinking it might be related to centos , but now I found that even ubuntu users experiencing the same problem.
does ssh logs any where, and what do you suggest for finding the cause.
Ops, I'm thinking about of a lack of entropy! Maybe the ssh session is renewing the connection keys and need some entropy to generate them. Maybe the use of /dev/urandom instead of /dev/random ....
Regards
I suffer this kind of problem using putty for long time now. The terminal freeze for about 45s to 3min. Other putty session are still working. I got this for 2 or 3 years now, on about all RedHat distribution and clone from RH Linux 8.0 and on a lot of different network infrastructure, with different hardware. The most common part is WinXP and putty, but in all version and service pack.
My workaround is : patience :-(
Thanks _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
-- Alain Spineux aspineux gmail com May the sources be with you
Alain Spineux wrote on Wed, 12 Dec 2007 19:21:18 +0100:
The most common part is WinXP and putty, but in all version and service pack.
I've been using Putty in various versions for years multiple times a day and from various locations and thru various connection methods. I don't see any difference when connecting to CentOS or Suse or FreeBSD, it's just fine and stays fine over hours or days. Also no problems with "inter-linux" connections (which I do on the command-line, not with a GUI client). Especially in the case of Windows I'd suspect an "overzealous" personal firewall or other security product causing your problems. It might also depend on the NAT or firewall configuration.
Kai
Centos wrote:
Hello
My ssh terminal froze some times, and I was thinking it might be related to centos , but now I found that even ubuntu users experiencing the same problem.
does ssh logs any where, and what do you suggest for finding the cause.
Had the same/similar problem. Our home dirs are nfs mounted from a linux box & if I explicitly set the nfs mount options in fstab instead of using the catchall "default" , the problem seems to go away. Workign locally on the client on the nfs home dir was OK, just that an ssh session to another box ( and same nfs home dir ) would occasionally hang after time.
Never found any complaints in any log files - discovered my "cure" by accident really.
My ssh terminal froze some times, and I was thinking it might be related to centos , but now I found that even ubuntu users experiencing the same problem.
This happens to me when I SSH from a Mandriva box to my CentOS server. It does not happen when I SSH to another Mandriva box, so it's a CentOS thang.
I turned on the TCP keep alive option in the SSH configuration, but it still happens. This is exceptionally annoying.
Miark
Around 01:45pm on Wednesday, December 12, 2007 (UK time), Centos scrawled:
Hello
My ssh terminal froze some times, and I was thinking it might be related to centos , but now I found that even ubuntu users experiencing the same problem.
does ssh logs any where, and what do you suggest for finding the cause.
Try changing /etc/ssh/sshd_config as follows:
... ClientAliveInterval 30 ClientAliveCountMax 5 ...
see: http://www.stevesearle.com/tech/centos5.0.svr.html#securessh
Steve
On Thu, 13 Dec 2007 00:10:05 +0000, Steve wrote:
Try changing /etc/ssh/sshd_config as follows:
... ClientAliveInterval 30 ClientAliveCountMax 5 ...
see: http://www.stevesearle.com/tech/centos5.0.svr.html#securessh
Doesn't work for me, unfortunately.
Miark
Miark, do you suffer the problem very often ? Could you try to temporarily make a link from /dev/random to /dev/urandom ?
# mv /dev/random /dev/random.save # ln -sf /dev/urandom /dev/random
Regards
On Dec 13, 2007 5:37 AM, Miark mlist@gardnerbusiness.com wrote:
On Thu, 13 Dec 2007 00:10:05 +0000, Steve wrote:
Try changing /etc/ssh/sshd_config as follows:
... ClientAliveInterval 30 ClientAliveCountMax 5 ...
see: http://www.stevesearle.com/tech/centos5.0.svr.html#securessh
Doesn't work for me, unfortunately.
Miark
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Thu, 13 Dec 2007 23:40:59 +0100, Alain wrote:
Miark, do you suffer the problem very often ? Could you try to temporarily make a link from /dev/random to /dev/urandom ?
Actually, I have to take that back. After I made the sshd config changes:
ClientAliveInterval 30 ClientAliveCountMax 5
it did hang on me once, but I'm looking at Konsole rigth now, and my connection to the CentOS box has stayed alive all day. I guess all is well.
I'll keep your suggestion, though. If the hangs return, I'll give your idea a shot.
Thanks, Miark
On 14/12/2007, Miark mlist@gardnerbusiness.com wrote:
Actually, I have to take that back. After I made the sshd config changes:
ClientAliveInterval 30 ClientAliveCountMax 5
it did hang on me once, but I'm looking at Konsole rigth now,
Let me guess - you did "service sshd reload" but didn't close your current session when you did that? The new settings don't affect existing sessions.
and my connection to the CentOS box has stayed alive all day. I guess all is well.
Great to hear.
Cheers,
--Amos
On Dec 14, 2007 12:15 AM, Miark mlist@gardnerbusiness.com wrote:
On Thu, 13 Dec 2007 23:40:59 +0100, Alain wrote:
Miark, do you suffer the problem very often ? Could you try to temporarily make a link from /dev/random to /dev/urandom ?
This is to avoid freeze (connection not responding for some seconds/minutes)
Actually, I have to take that back. After I made the sshd config changes:
ClientAliveInterval 30 ClientAliveCountMax 5
This is to avoid connection close! (connection definitely closed)
What is your problem ? Close or freeze ?
it did hang on me once, but I'm looking at Konsole rigth now, and my connection to the CentOS box has stayed alive all day. I guess all is well.
I'll keep your suggestion, though. If the hangs return, I'll give your idea a shot.
Thanks,
Miark _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Miark wrote:
On Thu, 13 Dec 2007 23:40:59 +0100, Alain wrote:
Miark, do you suffer the problem very often ? Could you try to temporarily make a link from /dev/random to /dev/urandom ?
Actually, I have to take that back. After I made the sshd config changes:
ClientAliveInterval 30 ClientAliveCountMax 5
it did hang on me once, but I'm looking at Konsole rigth now, and my connection to the CentOS box has stayed alive all day. I guess all is well.
I'll keep your suggestion, though. If the hangs return, I'll give your idea a shot.
Thanks, Miark
A couple of years back I was running into this problem very consistently, SSH sessions from my home to my office would just be dropped after a while. After talking to the network administrator I found that the Cisco firewall we were using would "prune" what it saw as inactive connections after a specific period of time. Adding the ClientAlive* entries to the sshd_config file has resolved this for me. -- Jay Leafey - Memphis, TN jay.leafey@mindless.com