Added retries on connection failures to ssh client. Changed tests to wait for server to come up before client trying to connect