jportela (
jportela) wrote in
dw_dev_training2010-04-04 08:22 pm
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[site community profile]](https://www.dreamwidth.org/img/comm_staff.png)
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 "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 :)
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 :)
no subject
no subject
no subject
no subject
no subject
no subject
add the following to the /etc/ssh/sshd_config file on your server:
KeepAlive yes
ClientAliveInterval 60
works great if you're likely to ssh in from different machines.
no subject
no subject
no subject