Quantcast
Channel: SSH.NET Library
Browsing all 2955 articles
Browse latest View live
↧

New Post: How to execute sudo command?

I solved it! Solution was post from pieceofsummer in thread: https://sshnet.codeplex.com/discussions/269667

View Article


New 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 Article


New Post: Specific command doesn't work

You forgot to mention what "doesn't work" means exactly. Timeout? Error-Messages? Exceptions?

View Article

New 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 Article

New Post: Specific command doesn't work

Okay. then try the command "changeto Production" instead of "changeto Producation". Hope it helps :P

View Article


New Post: Specific command doesn't work

It's a typo here, not in code.

View Article

New 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 Article

New 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 Article


New 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 Article


New 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 Article

New 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 Article

New 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 Article

New 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 Article


New 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 Article

New 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 Article


New 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 Article

Created Unassigned: Check Channel.IsOpen before using it [1655]

The channel for a forwarding should be checked for being opened (IsOpen) before binding/closing it.Else a Exception occurs and kills the whole connection.Renci.SshNet\ForwardedPortRemote.NET.cs```...

View Article


New 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 Article

New 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

New Post: PrivateKeyAuthentication from Stream

Well, no luck with memory file, I did eventually just tell the C# app to just write a tmp file to the users appDataPath, then it removes it away shortly after, to keep it from remaining on the box...

View Article
Browsing all 2955 articles
Browse latest View live