New Post: parsing real time data
Hi, i am need to write a debugger tool, i am connecting to a web-sever thru ssh and i am listening to a data-hub, i get like 100 lines per second, using the library i am able to connect and execute...
View ArticleNew Post: How to execute sudo command?
Hi guys! I need to execute some sudo commands on a VM running ubuntu. I started with a CheckSudoContact() method that should return true if it can echo a text. But I can't get it to work....
View ArticleNew Post: How to execute sudo command?
I solved it! Solution was post from pieceofsummer in thread: https://sshnet.codeplex.com/discussions/269667
View ArticleNew Post: Specific command doesn't work
Hello. I'm using SSH.NET to connect (with username + password) to a server and run some commands. Connection to server is made to manage some components via Cisco Application Control Software, but that...
View ArticleNew Post: Specific command doesn't work
You forgot to mention what "doesn't work" means exactly. Timeout? Error-Messages? Exceptions?
View ArticleNew Post: Specific command doesn't work
No timeout, no exception, SshCommand.Result and SshCommand.Error are empty as well. It looks the same as if the command work, but it just doesn't do the action it suppose to do.
View ArticleNew Post: Specific command doesn't work
Okay. then try the command "changeto Production" instead of "changeto Producation". Hope it helps :P
View ArticleNew Post: Specific command doesn't work
come on... seriously? use copy&paste if you want people to debug your code! So the code here isn't the code which doesn't work.. great! Next time copy&paste, please! What is "changeto...
View ArticleNew Post: Specific command doesn't work
Hi. I'm sorry for the mistake, believe me it wasn't intentional and i'm not here to waste your or anyone else's time. About the copy paste thing, it's not possible in my situation. I'm developing on an...
View ArticleNew Post: Specific command doesn't work
Can you combine commands in a cisco shell? On Linux/Unix you can call commands in a row by adding "&&" or ";" between them. Else you can check the sourcecode Renci.SshNet/SshCommand.cs or use...
View ArticleNew Post: Specific command doesn't work
About combining in cisco, will check that out with our network professionals as I can't find anything about it on google. And thanks a lot, probably will do one of the things suggested (change...
View ArticleNew Post: PrivateKeyAuthentication from Stream
Hey all, Situation:Want to connect from C# app to UNIX server using RSA PrivateKey (stored on local c: drive)with no passphrase. (works) Now I'd like to store the PrivateKey on another UNIX machine and...
View ArticleNew Post: PrivateKeyAuthentication from Stream
Update, tried it, it errors out with the following: at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath) at...
View ArticleNew Post: PrivateKeyAuthentication from Stream
Right, this lib just handles Filepaths/Filestreams. Your Use-Case is... let's call it... interesting ;) It's not the object you are passing, thats a string, nothing special about it. But it's an URL...
View ArticleNew Post: How to reliably terminate a remote process (Ctrl-C)
I figured out that writing 3 to ShellStream will usually terminate a remote running process:shellStream.WriteByte(3); However this doesn't always work. Does anyone know of a way to make this reliable?...
View ArticleNew Post: cancel pls delete
var scp = new ScpClient(...); scp.Upload(data, "otherserver-1.0/dispatchserver/server-config.xml"); // error generate path : otherserver-1.0/otherserver-1.0/dispatchserver/server-config.xml...
View ArticleNew Post: bug:ScpClient Upload exist direction would be error!
Direction Info:test dir/test ScpClient upload(data, "test");// successful upload(data, "dir/test");// failed would generate file at: dir/dir/test
View ArticleNew Post: PrivateKeyAuthentication from Stream
Thanks for the reply da_rinkes, I took this weekend off from looking at it, my apologies for slow response. Yes, I would agree, "interesting" is the best way to describe it =) I'll read up on those...
View ArticleNew Post: PrivateKeyAuthentication from Stream
Those are some good reads, I appreciate the info. StackOverflow (SOF) is pretty good too, they usually have a decent response rate to questions. I tried using the different methods listed, but all came...
View Article