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

by Jasmine, (7558 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.

locked

Complete thread: