jportela: (Default)
jportela ([personal profile] jportela) wrote in [site community profile] dw_dev_training2010-04-04 08:22 pm
Entry tags:

Keeping your ssh connection with dreamhack alive

When I connected to my dreamhack account via ssh (in ubuntu terminal), sometimes the terminal froze after some minutes of innactivity. I discovered this solution (works in ubuntu but probably works in any linux distribution with openssh. Windows users have putty, which may or may not have the same problem, but different configuration anyway).

You should only try this command in your *nix based computer (*not* on the ssh connection to the dreamhack account, as it won't work):

echo -e "ServerAliveInterval 15\nServerAliveCountMax 3" >> ~/.ssh/config 
 
If you are likely to use different machines to access your dreamhack account, then you can set it on the dreamhack server as this:

echo -e "KeepAlive yes\nClientAliveInterval 60" >> ~/.ssh/config 

And in Putty you have to change the parameter:

Seconds between keepalives, in the Connection Setup tab, to 15

For credits on the solutions, just browse the replies below :)