Results 1 to 9 of 9
  1. #1
    Join Date
    Jun 2010
    Location
    Kandy
    Posts
    1,068

    Preventing Closed by QUIT

    Hello,

    while i am using an ssh client to monitor exim logs on real time using tail -f, after monitoring about 5 to 10 minutes, i get the message 'closed by QUIT'. this annoying me, coz i have to reconnect again every time. any way to prevent this?

    i have ticked the option 'ssh keep alive' too in the ssh client configuration

  2. #2

    Thumbs up ClientAliveCountMax

    sounds like your ssh server is timing out and closing your session, if you have access to the server check the sshd_config and the "ClientAliveCountMax" setting so that it gives you more time.

  3. #3
    Join Date
    Jun 2010
    Location
    Kandy
    Posts
    1,068
    Quote Originally Posted by virtualempire View Post
    sounds like your ssh server is timing out and closing your session, if you have access to the server check the sshd_config and the "ClientAliveCountMax" setting so that it gives you more time.
    hai virtualemprire,

    ClientAliveCountMax is set to 3.


  4. #4
    set it to 20

    sometimes between ssh server and ssh client the "ACK" signal doesnt get replied to and the connection is dropped, try bumping it up and then it wont time you out.

  5. #5
    Join Date
    Jun 2010
    Location
    Kandy
    Posts
    1,068
    btw,

    this problem happens in my office windows pc which is attached to local intranet with around 100 computers having shared the internet. the connection is also bit slowing down time to time.

    i have a linux pc at my home and if i run putty in that, it seems no problem. now i have been tailing the exmim in putty now for 1 hour. no problem.

    so slow connection might also a factor for this problem i think.

    but internet is not completely dropping at office though...

  6. #6
    Join Date
    Jun 2010
    Location
    Kandy
    Posts
    1,068
    Quote Originally Posted by virtualempire View Post
    set it to 20

    sometimes between ssh server and ssh client the "ACK" signal doesnt get replied to and the connection is dropped, try bumping it up and then it wont time you out.
    sure ill be trying that

  7. #7
    it could be the slow connection ,but when I ran into that it was the ACK reply getting blocked and the connection being dropped.

    BTW, I am using windows with zoc ssh, best ssh out there for windows! I only use putty for "emergencies"

  8. #8
    Join Date
    Jun 2010
    Location
    Kandy
    Posts
    1,068
    Quote Originally Posted by virtualempire View Post
    it could be the slow connection ,but when I ran into that it was the ACK reply getting blocked and the connection being dropped.

    BTW, I am using windows with zoc ssh, best ssh out there for windows! I only use putty for "emergencies"
    Thanks, very usueful tips, i never heard of ACKs until now
    ill foolow this instructions to keep the session alive.

    http://www.syn-ack.org/centos-linux/...ing-time-outs/


  9. #9
    Join Date
    Jun 2010
    Location
    Kandy
    Posts
    1,068
    Hai folks,

    i tried all your suggessions + more turotials online to keep the ssh session alive. but non of them worked for me.

    but, i found 'ConfigServer Security & Firewall' > 'system log watch' within the whm is the only think that works for me continually.
    very interestingly it automatically continues even after 'Closed by QUIT' is shown. kudus to CSF!

    Thanks folks for trying to solve my issue!

Similar Threads

  1. Replies: 3
    Last Post: 05-11-2009, 07:25 AM
  2. [CLOSED] ReInvention [CLOSED]
    By The3bl in forum WHT Announcements, Feedback and Questions
    Replies: 3
    Last Post: 05-19-2007, 09:09 AM
  3. Quit watchmouse?
    By tmax100 in forum Web Hosting Lounge
    Replies: 0
    Last Post: 05-24-2006, 03:42 PM
  4. Sorry. I'll quit, I promise.
    By LarryLowman in forum Reseller Hosting
    Replies: 13
    Last Post: 04-02-2003, 01:59 AM

Posting Permissions

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