added timeout to ssh connect, this can sometimes block infinitely.

adding a timeout attempts a reconnect on timeout and continues in this case.