Re: SSH.NET and ASP.NET (General questions)
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:
- SSH.NET and ASP.NET - jgordon, 2004-08-21, 01:37
- Re: SSH.NET and ASP.NET - wodSupport, 2004-08-21, 02:07
- Re: SSH.NET and ASP.NET - jgordon, 2004-08-21, 02:31
- Re: SSH.NET and ASP.NET - wodSupport, 2004-08-21, 09:37
- Re: SSH.NET and ASP.NET - jgordon, 2004-08-21, 02:31
- Re: SSH.NET and ASP.NET - wodSupport, 2004-08-21, 02:07