开发者

Help me MAKE C# Monitor (Output) and Feed (Input) to SSH.exe

I've found that the more I refine a question, the better help I get.

So, to make the question as complete as possible, I'm providing this C# WPF solution created in Visual Studio 2010 Beta 2.

This solution exactly reproduces the problem I'm having, as I try to capture output from ssh.exe using the System.Diagnostics.Process object.

To reproduce this problem, right in front of your own eyes, you'll need two things: (1) An installation of Visual Studio 2010 Beta 2. (2) The IP address of a Linux Server that allows incoming SSH connections.

To modify this code to work, you'll probably need to be just as much a hacker as much as you are a programmer. The code is as complete as I know how to make it. It will monitor the output of almost any other command-lin开发者_如何学Pythone utility (except for ssh.exe).

If you click on my name, you can see all the previous ways I've asked this question. If you have a suggestion, but are unable to download and reproduce this problem, please submit you answers to one of those previous question instead:

I'd like to reserve this question to those who have the prerequisites to reproduce the problem, and answer it by showing how they made it work (with certain modifications).


I have read your question and I have not reproduced or fixed this issue. I however do offer some good (I hope ) advice. You have been trying to make this approach work and not succeeding, I would suggest trying a different approach.

I would look into the existing C# SSH libraries (1 2 3) which have been coded, tested, proved and will provide a much nicer interface than System.Diagnostics.Process.

I know this does not answer your question, but it could resolve your issue.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜