while loop with ssh