Quantcast
Channel: sshnet Discussions Rss Feed
Browsing all 1729 articles
Browse latest View live
↧

New Post: RunCommand for sub processes (Mongo)?

Hey guys, I'm trying to use client.RunCommand to pass a series of commands to a server instance of MongoDB. I am connecting to the server correctly using SSH... but when I try to run the command to...

View Article


New Post: RunCommand for sub processes (Mongo)?

RunCommand() uses the ssh command feature. Means each command is started in it's own new "shell". client.RunCommand("pwd") => $HOME client.RunCommand("cd /tmp") client.RunCommand("pwd") => $HOME...

View Article


New Post: RunCommand for sub processes (Mongo)?

Thanks da_rinkes. Will look into ShellStream an d Error-Property and update.

View Article

New Post: SshCommand.Execute with STDIN support

Thanks for sharing this information. Very useful to me. Codeplex team, My sincere request to add this into your next release. it will be useful to most of this library users. Regds Hari

View Article

New Post: Running commands not returning results

I've created a SignalR SSH web console and I'm trying to run simple commands like "?" but I do not get a response, just an empty string. Here is a code sample: SshClient client; if...

View Article


New Post: Running commands not returning results

Also read/show the content of ExtendedOutputStream , which contains the data from StdErr. OutputStream just holds data from StdOut. Maybe your output is printed to StdErr?

View Article

New Post: Running commands not returning results

Also when I debug the app it never leaves the while loop, so it never gets to the sshCommand.EndExecute(asynch) statement. Should I use a different function?

View Article

New Post: Running commands not returning results

Looks good in a simple test program: var sshCommand = client.CreateCommand("pwd"); var asynch = sshCommand.BeginExecute(); var reader = new StreamReader(sshCommand.OutputStream); var errreader = new...

View Article


New Post: Running commands not returning results

Some commands are still freezing on the errreader.ReadToEnd() . Also command response in inconsistent. I can run the exact same command twice, first time it works, second time no response. cat...

View Article


New Post: Running commands not returning results

tirrellcotton wrote: Some commands are still freezing on the errreader.ReadToEnd() . Also command response in inconsistent. I can run the exact same command twice, first time it works, second time no...

View Article

New Post: Running commands not returning results

Can you ensure on the server the command exits? e.g. ps auxwww | grep cat The command exists because the first time I get results, but not after that. RunCommand() uses the ssh command feature. Means...

View Article

New Post: Running commands not returning results

exits not exists. I'm pretty sure cat exists on every system out there :) Please check the connection state when the ReadToEnd() hangs. I think I can trigger your problem with this: while (true) { var...

View Article

New Post: Commands are redisplayed before results are shown

When I run a command like "show vlan" I always get the following before the results are shown (and not exactly as I typed it). I'm using SignalR btw. ssh> show vlan show vlan s I just want to see...

View Article


New Post: Commands are redisplayed before results are shown

It is a normal behavior of a terminal that the server send you back the entered text. Normally a terminal only displays the data received by the server. I guess the problem you have is that you have to...

View Article

New Post: Running commands not returning results

Have you tried to turn on the blocking mode in the SshCommand.OutputStream? In this thread there is a example how it works nice:https://sshnet.codeplex.com/discussions/572434 I used this method and it...

View Article


New Post: Commands are redisplayed before results are shown

Ok, this is really getting frustrating. I've used the SshCommand class prevoiusly and had problems (see https://sshnet.codeplex.com/discussions/573944) so I was told to use ShellStream. Now ShellStream...

View Article

New Post: Commands are redisplayed before results are shown

what kind of server do you have? It looks like you have not a linux server.

View Article


New Post: Interactive Authentication

i did a simmilar thing when i worte a terminal program. I also added events and wrote a new Auth-Class which is basically a PasswordAuthenticationMethod with events then I passed the PuplickeyAuth and...

View Article

New Post: Commands are redisplayed before results are shown

Please clarify the goal of your project. It gets quite confusing for us. One day its a ubuntu server, now its a cisco device (?). Are you sure, you are just showing what the server replies? All I told...

View Article

New Post: Interactive Authentication

awesome! can you provide a patch? I'm pretty sure it would be a nice feature for our upstream codebase.

View Article
Browsing all 1729 articles
Browse latest View live


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