Boards.ie uses cookies. By continuing to browse this site you are agreeing to our use of cookies. Click here to find out more x
Post Reply  
 
Thread Tools Search this Thread
09-07-2012, 10:31   #1
equivariant
Registered User
 
Join Date: Dec 2008
Posts: 570
connection timing out

A bit of a noob question.

I have a letshost VPS (running Ubuntu 11.10) that I am using to learn about web programming. My problem is that if a terminal is left inactive for about 10 minutes it disconnects, which is annoying as I like to keep 3 or 4 shells
open, but some of them I only need to use infrequently. I know that this
is not a problem with my ssh client as I don't experience this problem on
other servers. Is this something that I can easily fix - is there some setting
that determines how long a shell can be inactive for?
equivariant is offline  
Advertisement
10-07-2012, 12:10   #2
Giuseppe90
Registered User
 
Join Date: Feb 2009
Posts: 10
What are you using to connect ? If you are connecting from a linux box you could add the following to your /etc/ssh/ssh_config

ServerAliveInterval 60

This will send a message to the server if no data has been received in 60 seconds and should keep your connection active

Last edited by Giuseppe90; 10-07-2012 at 12:11. Reason: Clarification on time
Giuseppe90 is offline  
10-07-2012, 13:08   #3
equivariant
Registered User
 
Join Date: Dec 2008
Posts: 570
Quote:
Originally Posted by Giuseppe90 View Post
What are you using to connect ? If you are connecting from a linux box you could add the following to your /etc/ssh/ssh_config

ServerAliveInterval 60

This will send a message to the server if no data has been received in 60 seconds and should keep your connection active
Thanks.
Sometimes I connect from a linux box, sometimes using putty on my w*****s laptop
equivariant is offline  
10-07-2012, 13:18   #4
Giuseppe90
Registered User
 
Join Date: Feb 2009
Posts: 10
In the "Connection" section of your putty settings there should be an option to send null packets - change that from 0 to 60 and that should do it. You will need to do that and save for each session you have saved.

Hope that helps
Giuseppe90 is offline  
(2) thanks from:
11-07-2012, 11:22   #5
equivariant
Registered User
 
Join Date: Dec 2008
Posts: 570
Quote:
Originally Posted by Giuseppe90 View Post
What are you using to connect ? If you are connecting from a linux box you could add the following to your /etc/ssh/ssh_config

ServerAliveInterval 60

This will send a message to the server if no data has been received in 60 seconds and should keep your connection active
Actually I just realised that if I put

ClientAliveInterval 60

in sshd_config on the server then this sorts the problem from the server side, so I don't have to configure the clients individually
equivariant is offline  
Post Reply

Quick Reply
Message:
Remove Text Formatting
Bold
Italic
Underline

Insert Image
Wrap [QUOTE] tags around selected text
 
Decrease Size
Increase Size
Please sign up or log in to join the discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search