New Post: ssh conversation
Griffin90, My email notification of your latest looked like this:Dim ConnSring As New Renci.SshNet.PasswordConnectionInfo("myserver.com", "xx65", "password") Dim sshConn As New...
View ArticleNew Post: ssh conversation
Hello Pat, I know that, I know the basics of visual basic... :) Those lines were commented because there were other lines on the code that I removed in order to make my point in this thread. Bunch of...
View ArticleNew Post: ShellStream.ReadLine causes _socket.Receive to return zero,...
I'm calling ShellStream.Readline in my code after sending a command, but if I then loop and call ReadLine, I find that the _socket.Receive call in Session.NET.cs returns zero bytes read and hence...
View ArticleNew Post: ShellStream.ReadLine causes _socket.Receive to return zero,...
OK nevermind. I believe this is happening because the channel is closed due to an improperly handled authentication request. I will post a new thread for that issue since it is quite different from...
View ArticleNew Post: How to handle unexpected authentication requests properly.
I have a situation where executing some commands via ShellStream.WriteLine can result in unexpected authentication requests. I'm trying to figure out how to handle this properly in order to show a...
View ArticleNew Post: How to handle unexpected authentication requests properly.
Deleted due to being unrelated to this issue.
View ArticleNew Post: How to handle unexpected authentication requests properly.
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().
View ArticleNew Post: How to handle unexpected authentication requests properly.
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()....
View ArticleNew Post: How to handle unexpected authentication requests properly.
K, then you have to do it on your own by parsing the Output and ask the user if a password is necessary. SSH.Net can't help you here, since it is not part of SSH protocol. Sounds like you can't use...
View ArticleNew Post: How to handle unexpected authentication requests properly.
Excellent, thanks for your help! I'll take a look at those examples.
View ArticleNew Post: How to handle unexpected authentication requests properly.
Just one thing I don't understand... Whenever these unexpected authentication requests occur, the client (like Putty) knows to hide the characters that the user types. So the client knows that this is...
View ArticleNew Post: How to handle unexpected authentication requests properly.
Aye, you don't understand SSH. SSH has nothing to do with what happens in the shell, it just gives you access to it. Not putty is hiding the password, the program in the shell hides the password. The...
View ArticleNew Post: How to handle unexpected authentication requests properly.
OK thanks. As I said I'm not familiar with SSH, but what you say makes sense and I'll manually parse for password requests.
View ArticleNew Post: How to handle unexpected authentication requests properly.
I got it to work by parsing the text and writing the password (and appending "\r\n") when requested. Only thing is that it seems a bit unreliable since one doesn't always know exactly what the request...
View ArticleNew Post: How to handle unexpected authentication requests properly.
Cool, you seem to start understand the problem :) What about setting the LOCALE environment, if your tools respect this, it should work more...
View ArticleNew Post: How to handle unexpected authentication requests properly.
Fortunately in my case this is part of an internal tool that is used by me and a few other developers, so the environment should be reasonably predictable and stable. I'm just thinking that in general...
View ArticleNew Post: How to handle unexpected authentication requests properly.
It is actually the only good and properly working solution. And the problem with localization is one reason, beside its not a SSH problem, why it isn't part of any SSH library. The environment differs...
View ArticleNew Post: How to handle unexpected authentication requests properly.
I'm actually running into a weird problem. I got this to work reliably with other use cases except for Perforce. For some reason I can't get it to recognize the password I'm sending. I tried sending it...
View ArticleNew Post: Small File Upload Problem
I had the exact same problem as rdominelli, i.e. getting "Connection was lost" intermittently when sending files to a MoveIt server. I upgraded to the latest version of SSH.NET but this caused the...
View ArticleNew Post: Unhandled exception
Bump. As anyone run into this issue or know what could resolve it? I've gone around the problem by using singleton instances of various connections I need and disposing them only on application exit...
View Article