Re: SSH.NET and ASP.NET - WeOnlyDo Discussion board

Re: SSH.NET and ASP.NET (General questions)

by wodSupport, Saturday, August 21, 2004, 02:07 (7400 days ago) @ jgordon

Jgordon,

here's what you should try. If you're 100 sure that # is the remote prompt, make sure you first consume all that is initially sent by the server, then send your command and read output, something like this:
[code]...
ssh.Connect
ssh.Waitfor('#')
Response.Write ssh.Execute( ls -al\n , # )
ssh.Disconnect[/code]
make sure you don't send CRLF but only LF sequence - most UNIX servers prefer only LF to be sent.

Can you try above and let me know how it goes?

Regards.


Complete thread: