Timeout generally means a script is taking too long to output anything. Can be errors, loops, server configuration. Make sure error logging is turned on and not suppressed.
Else you could also check if the Public IP address changed or if the instance ran out of disk space.