[Gllug] Disconnected ssh sessions and pseudo-terminals

Ziya Suzen ziya at suzen.net
Tue Oct 28 16:28:45 UTC 2008


On Tue, Oct 28, 2008 at 1:31 PM,  <damion.yates at gmail.com> wrote:
[...]
> for weeks without issue with mine.  You could change ISPs.  Or perhaps a

At work we are using plus.net (I think they are BT now, not sure) and it's
probably not the best. At home I have Zen and I rarely see connections
dropping. (Just saying...)

> VPN to your shell account can retain an virtual interface and IP despite
> crumbling underlying connections?

That would be nice (extra nice with a stateless udp one as Alain mentioned).
Do you know any straight forward to use VPN utilities? I did look into IPSec
once but looked awfully complicated. So I am stuck with SSH and stunnel
for my VPN needs.

> If it's vim* sending a kill -1 (SIGHUP) should get it to close reasonably
> cleanly.  You should also be able to vi it and see the state of the file
> via its swap file.  You're faced with multiple options:
>
> Found a swap file by the name ".example.txt.swp"
>          owned by: damion   dated: Tue Oct 28 13:26:22 2008
>         file name: ~damion/example.txt
>          modified: no
>         user name: damion   host name: aa.secret.domain.com
>        process ID: 10985 (still running)
> While opening file "example.txt"
>
> Swap file ".example.txt.swp" already exists!
> [O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort:

This is what I have been doing actually...

>
> *Or even if it's not, most vi versions deal well with a hangup signal,
> old SunOS boxes I used in the past would email me the file in that
> situation :)

Good old days :)

>
>> And hopelessly tried 'screen' to get to the orphan terminal :(
>
> I love screen and use it all the time.  I would rate it as the best
> application I have ever used in the world ever!
>

Admittedly I didn't know about it before but now I feel like
a kid just got a nice new toy as a present. :)

-z
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list