I am using putty to ssh to a server (Ubuntu 20.04) and run 3 commands. However, sometimes the connection is broken and I need to shutdown putty and restart manually.
Is there any method that I can use to tell putty (or an alternative program) to:
auto-reconnect if disconnected.
after connection, run 3 pre-defined commands.
Many thanks.