Add do-while to Server.writeSSHShell