Use main looper and retry when ssh handshake timeout

Just for personal usage