da_rinkes wrote:
Note again I'm re-using the same channel to run multiple commands by calling ShellStream.WriteLine and responding to the output. I don't know if that is significant in this case.
BTW please ignore the second post, as it is mostly unrelated to the authentication issue.
Those "unexpected authentication request" aren't from SSH, right?No those are not from SSH. As an example, if you use Perforce for as your SCM, then when executing Perforce commands, it can potentially result in a password prompt at any time because the Perforce session has a limited lifetime. So you might happily be executing Perforce commands, and then unexpectedly you get a password prompt in order to renew your login. This is just one example, but I have other cases like this too.
If it's sudo, or any other command, you can parse the Output yourself by using async read/write or use the expect().
Note again I'm re-using the same channel to run multiple commands by calling ShellStream.WriteLine and responding to the output. I don't know if that is significant in this case.
BTW please ignore the second post, as it is mostly unrelated to the authentication issue.