Re: Execute Remote Application using SSH - WeOnlyDo Discussion board

Re: Execute Remote Application using SSH (General questions)

by KG, Friday, August 19, 2005, 02:05 (7036 days ago) @ wodSupport

Now I am getting this error. Could not obtain channel pty on remote server.

in the code I have added Ssh1.AllocatePty = false;

The Server was installed using default settings.

Thanks,
KG

KG,

in your code try setting Ssh1.Blocking = True, otherwise your instance if destroyed immediately when your function exits, so it doesn't give enough time for component to complete the operation. Blocking should make it work for you.


Complete thread: