Re: making ssh connections persistent



Raju,

Kamaraju S Kusumanchi <raju.mailinglists@xxxxxxxxx>:
] 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@xxxxxxxxxx/main
ead@xxxxxxxxx | 650 Castro St, #120-210 | Y!M: ead0002
ixian.com/ead/ | Mountain View, CA 94041 | ICQ: 811788


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Windows to Debian secure data transfer over internet
    ... I am aiming to a method where the photos' transfer can be ... resumed if the connection breaks and is recreated. ... asked him to send it over rsync via ssh. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: What is The SSH?
    ... Building and Using SSH Tunnels ... What is an SSH tunnel? ... how to use it to make a connection to a server. ... You will need a working SSH client and server installation to build and test ...
    (microsoft.public.windows.server.networking)
  • ssh connection without passwd
    ... In fact I want an automatic (from scrpit without passwd) connection ... I don't know if ssh has an option to disable ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Problem connecting to SSH, OpenVMS7.3-2, HP TCP/IP v5.4 patched
    ... warning: Authentication failed. ... connection lost (Connection closed by remote host.). ... So, as you can see, I am trying to make an ssh connection with the ...
    (comp.os.vms)
  • Re: Keeping OpenSSH connections alive
    ... The TCP connection is timing out, not the SSH session. ... You can then, reconnect to the backgrounded screen session, upon relogin. ...
    (SSH)