Attempt to keep SSH connection alive.