Re: making ssh connections persistent
Raju,
Kamaraju S Kusumanchi <raju.mailinglists@gmail.com>:
] I often use ssh to access other computers at school. However, I can't
] make these connections persistent. If there is no activity (say in 20
] minutes), the ssh connection just freezes up. As a result, I have to
] kill all the gvim, xterm windows opened from that terminal. This is
] very annoying if I am coding something.
]
] Is it possible to make ssh connections which do not freeze even if
] there is no activity for a while?
As others have suggested, put this in the $HOME/.ssh/config file on
your local machine:
ServerAliveInterval 60
Also, use screen(1) for terminal (xterm/rxvt) work once you've logged
in to the remote machine. That way, even your connection is dropped, you
can resume the screen(1) session right where you left off.
This email was composed on my ISP which I am ssh'ed in to from a screen
session on my home system. Which, in turn, I've ssh'ed in to from work.
If my work->home connection dies, I simply reconnect to home via ssh,
then resume my screen session. When I resume the screen session, voila,
my open emacs program up at my ISP, for example, is presented to me.
screen(1) is old, but it's a killer app.
Regards,
Eric
--
Eric De Mund | Ixian Systems | Jab: eadixian@jabber.org/main
ead@ixian.com | 650 Castro St, #120-210 | Y!M: ead0002
ixian.com/ead/ | Mountain View, CA 94041 | ICQ: 811788
Reply to: