Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: How to handle unexpected authentication requests properly.

$
0
0
da_rinkes wrote:
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().
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.

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.

Viewing all articles
Browse latest Browse all 1729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>