Merge "Retry for checking ssh connection."