0

I have to SSH to a computer on my network and stay connected. However, my network shuts down from midnight to 7:00 am everyday. What i want is that I be able to auto-reconnect to the computer once the network comes back at 7:00 am. Cron solutions are no good. I am using Ubuntu 10.04.

2 Answers 2

2

Use autossh. It will spew thousands of retry errors from Midnight to 7:00am, but it will reconnect you eventually.

1
  • Thanks. Even though I haven't tested it yet, i guess it will work.
    – tapan
    Jun 20, 2010 at 12:17
1

I can't think of a mechanism that would let an SSH session dally for 7 hours, but GNU Screen Session Management could probably help with disconnecting and reattaching to a shell.

1
  • I'm sorry but this didn't help. I think I couldn't exactly figure this out.
    – tapan
    Jun 13, 2010 at 20:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .