Trouble with Space in SSH-Command

Sep 6, 2013 at 12:03 PM

i have a problem with remote-excution of commands when they include a space.
There is a working connection to a firewall ( and i can use single-term commands (i.e. "help"), but not "appmgmt status". It seems to me, that the firewall interprets the command as two commands - it returns alway "--unknown command". With Putty it works like a charm.

I wrote a simple test-application to clarify the issue:
ConnectionInfo sLogin = new PasswordConnectionInfo(_host, _user, _password);
            SshClient sClient = new SshClient(sLogin);

            SshCommand appStatCmd = sClient.CreateCommand("help");
            textBox1.Text = appStatCmd.Result;
I also tried to change the encoding of the command, without luck.

Target-Framework is 4.0, working on a Windows 2008 SP2 x64 RDS with Visual Studio 2010 Pro.

Any help will be appreciated.
Sep 10, 2013 at 10:13 AM
I found the solution while reading other discussions, is it mentioned here: