Post #202,944
4/12/05 12:43:05 AM
|

Yes. Yes, I was. Actually, I've done it several times.
The first time I did it, I was't sure it would work. But it did. :-)
Wade.
Is it enough to love Is it enough to breathe Somebody rip my heart out And leave me here to bleed
| | Is it enough to die Somebody save my life I'd rather be Anything but Ordinary Please
| -- "Anything but Ordinary" by Avril Lavigne. |
|
Post #202,945
4/12/05 12:45:38 AM
|

I thought of that too late (worked for me in the past too)
|
Post #202,947
4/12/05 12:55:17 AM
|

On experimenting...
.. I discover that this works - against my expectations.
Conclusion? eth0 isn't going down properly.
If it went down, you wouldn't be connected any more.
Peter [link|http://www.ubuntulinux.org|Ubuntu Linux] [link|http://www.kuro5hin.org|There is no K5 Cabal] [link|http://guildenstern.dyndns.org|Home] Use P2P for legitimate purposes!
|
Post #202,956
4/12/05 2:00:43 AM
|

I disagree on your analysis.
I think that sshd is holding onto state despite the network device vanishing. However, the down/up restores the network device long before sshd decides to discard the session. After all, an ifdown does make the device "not exist" as eth0: its IP address is not bindable, the routes are removed, etc etc.
It might also be the OS leaving the connection open *as far as the sshd process is concerned* although I'm sure it would get copious errors were it to try to use it whilst the device was disabled.
Wade.
Is it enough to love Is it enough to breathe Somebody rip my heart out And leave me here to bleed
| | Is it enough to die Somebody save my life I'd rather be Anything but Ordinary Please
| -- "Anything but Ordinary" by Avril Lavigne. |
|
Post #202,963
4/12/05 5:07:53 AM
|

Re: I disagree on your analysis.
If sockets are open and working, then the interface ain't down.
Peter [link|http://www.ubuntulinux.org|Ubuntu Linux] [link|http://www.kuro5hin.org|There is no K5 Cabal] [link|http://guildenstern.dyndns.org|Home] Use P2P for legitimate purposes!
|
Post #202,972
4/12/05 6:40:14 AM
|

This is how I handle the issue
I often will do "nohup /etc/init.d/network restart". I lose my connection but the process keeps going due to the nohup.
|
Post #202,973
4/12/05 7:01:21 AM
|

Ar, that's what I do
Of course, if summat breaks you're knackered, but hell, exercise is good for you.
Peter [link|http://www.ubuntulinux.org|Ubuntu Linux] [link|http://www.kuro5hin.org|There is no K5 Cabal] [link|http://guildenstern.dyndns.org|Home] Use P2P for legitimate purposes!
|
Post #203,048
4/12/05 3:05:54 PM
|

Nope, I disagree.
The interface goes down.
SSH server buffers the requests until it can get back through. As long as the tunnel construction hasn't failed it should still be there... It is sort of like pushing stop on your DVD once. When you remove and re-insert the DVD, the DVD Player starts exactly where left off.
It is the same idea, just implemented in Network protocol. Of course Timeouts apply with SSH but the DVD only fails when power has been removed.
-- [link|mailto:greg@gregfolkert.net|greg], [link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey[link|http://it.slashdot.org/comments.pl?sid=134485&cid=11233230|"Microsoft Security" is an even better oxymoron than "Military Intelligence"] No matter how much Microsoft supporters whine about how Linux and other operating systems have just as many bugs as their operating systems do, the bottom line is that the serious, gut-wrenching problems happen on Windows, not on Linux, not on Mac OS. -- [link|http://www.eweek.com/article2/0,1759,1622086,00.asp|source]
|
Post #204,039
4/20/05 10:45:18 AM
|

It works like that with warp, too
I've done that particular trick on the box in the basement before.
--\n-------------------------------------------------------------------\n* Jack Troughton jake at consultron.ca *\n* [link|http://consultron.ca|http://consultron.ca] [link|irc://irc.ecomstation.ca|irc://irc.ecomstation.ca] *\n* Kingston Ontario Canada [link|news://news.consultron.ca|news://news.consultron.ca] *\n-------------------------------------------------------------------
|