Dear All: I was wondering if it might at all be possible to have the following functionality in OpenSSH: (i) upon "timeout" of connection (say 2-5 seconds) disconnect (ii) keep trying to reconnect (iii) upon reconnection, resume session exactly where started I realize GNU screen solves (iii), although I am interested in a slightly different purpose (nxssh vs openssh). However, I am confused as to (i). Any help much appreciated. Please reply-all Thank you Misha
Misha-- You could wrap ssh in airhook, if this is being a problem. On Sun, Apr 18, 2010 at 6:26 PM, Misha Koshelev <misha680 at gmail.com> wrote:> Dear All: > > I was wondering if it might at all be possible to have the following > functionality in OpenSSH: > (i) upon "timeout" of connection (say 2-5 seconds) disconnect > (ii) keep trying to reconnect > (iii) upon reconnection, resume session exactly where started > > I realize GNU screen solves (iii), although I am interested in a slightly > different purpose (nxssh vs openssh). > > However, I am confused as to (i). > > Any help much appreciated. > > Please reply-all > > Thank you > Misha > _______________________________________________ > openssh-unix-dev mailing list > openssh-unix-dev at mindrot.org > https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev >
Thank you. Looks to be defunct per http://airhook.ofb.net/ Dan Kaminsky wrote:> Misha-- > > You could wrap ssh in airhook, if this is being a problem. > > On Sun, Apr 18, 2010 at 6:26 PM, Misha Koshelev <misha680 at gmail.com > <mailto:misha680 at gmail.com>> wrote: > > Dear All: > > I was wondering if it might at all be possible to have the following > functionality in OpenSSH: > (i) upon "timeout" of connection (say 2-5 seconds) disconnect > (ii) keep trying to reconnect > (iii) upon reconnection, resume session exactly where started > > I realize GNU screen solves (iii), although I am interested in a > slightly different purpose (nxssh vs openssh). > > However, I am confused as to (i). > > Any help much appreciated. > > Please reply-all > > Thank you > Misha > _______________________________________________ > openssh-unix-dev mailing list > openssh-unix-dev at mindrot.org <mailto:openssh-unix-dev at mindrot.org> > https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev > >
Hi Misha, On Sun, 18 Apr 2010, Misha Koshelev wrote:> I was wondering if it might at all be possible to have the following functionality in OpenSSH: > (i) upon "timeout" of connection (say 2-5 seconds) disconnect > (ii) keep trying to reconnect > (iii) upon reconnection, resume session exactly where started[...]> However, I am confused as to (i).It might reduce the confusion (yours and ours) if you defined exactly what you mean by "timeout"? If you mean "packet sent with no response from the remote side", you can do that (or something similar) with the TCPKeepAlive or ServerAliveInterval options to the client. You can do (ii) by wrapping the ssh command in a shell loop: while ! ssh user at host -o 'ServerAliveInterval 5' screen -d -RR; do true; done Cheers, Chris. -- _ ___ __ _ / __/ / ,__(_)_ | Chris Wilson <0000 at qwirx.com> - Cambs UK | / (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer | \ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |
On Sun, Apr 18, 2010 at 05:26:06PM -0500, Misha Koshelev wrote:> I was wondering if it might at all be possible to have the following functionality in OpenSSH: > (i) upon "timeout" of connection (say 2-5 seconds) disconnect > (ii) keep trying to reconnect > (iii) upon reconnection, resume session exactly where startedthis is a work-in-progress, some parts are already commited to the released versions. other parts need to be reviewed. Andreas can provide details, I think -- and yes, I should look into reviewing the remaining patches....... -m