Those "unexpected authentication request" aren't from SSH, right?
If it's sudo, or any other command, you can parse the Output yourself by using async read/write or use the expect().
If it's sudo, or any other command, you can parse the Output yourself by using async read/write or use the expect().