Edit ~/.ssh/config and add “ConnectionAttempts 120” to automatically retry SSH connections for two minutes after a reboot.