SSH.NET and ASP.NET - WeOnlyDo Discussion board

SSH.NET and ASP.NET (wodSSH / wodSSH.NET)

by jgordon, Saturday, August 21, 2004, 01:37 (7398 days ago)

I noticed that all the sample apps provided are for Windows Applications. Will the component work in an ASP.Net app?

And which methods would you recommend to use to send commands to the ssh server?

I have been using the execute method and just can't seem to get it to work. I am returning to a textbox the prompt(eg. [root@hostname root]#) but the app times out when I try to execute a command.

here's my code inside the execute function:
.Login = username
.Password = password
.Port = 22
.Encryption = WeOnlyDo.Client.SSH.EncryptionMethods.Auto
.Protocol = WeOnlyDo.Client.SSH.SupportedProtocols.SSHAuto
.Blocking = True
.Connect(txtHostIP.Text)
.Prompt = #
.Execute(ls -al/r/n)

Your insight would be greatly appreciated.


Complete thread: