Re: Auto Reconnect
From: neil (neil_at_bellsimons.com)
Date: 06/03/04
- Previous message: Yaron Presente: "ssh authenticates to PAM with username "NOUSER""
- In reply to: Bob Lee: "Auto Reconnect"
- Next in thread: Ranjeet Shetye: "Re: Auto Reconnect"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
To: Bob Lee <crazybob@crazybob.org> Date: Thu, 03 Jun 2004 11:52:09 -0400
You could convert this to Perl and use Net::Ping
http://www.perldoc.com/perl5.8.0/lib/Net/Ping.html
On Thu, 2004-06-03 at 10:54, Bob Lee wrote:
> I'm trying to keep an SSH connection running because I'm using a remote
> port forward and cannot always access the client side to manually
> restart the connection.
>
> In bash, I can just put it in an infinite loop:
>
> while :
> do
> ssh xxx.org
> done
>
> It works pretty well, but sometimes the client hangs. Are there any
> arguments I could set so that SSH will periodically ping the server and
> exit the process if the connection goes down?
>
> Thanks,
> Bob
- application/pgp-signature attachment: This is a digitally signed message part
- Previous message: Yaron Presente: "ssh authenticates to PAM with username "NOUSER""
- In reply to: Bob Lee: "Auto Reconnect"
- Next in thread: Ranjeet Shetye: "Re: Auto Reconnect"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|