After sending the password, read_until_quiet returned as soon as the 'Last login:' banner went quiet — before the actual shell prompt arrived. Since 'Last login:' proves the password was accepted, do a second read (up to 10s) specifically to catch the delayed prompt. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>