handling of display_ssh_output in wait_for_passwd