ERROR: Could not obtain channel pty on remote serv - WeOnlyDo Discussion board

ERROR: Could not obtain channel pty on remote serv (General questions)

by yogi, Friday, November 02, 2007, 11:23 (6231 days ago)

Hi,

When trying to connect to remote server using public key authentication, I get following responce:-
ERROR: Could not obtain channel pty on remote server.

But if I specify command property before connect, then the specific command executes and session disconnects. Though this will do, I will prefer if I could establish a continuous session and fire multiple commands in one session.

is it possible?

Limitation: I can't change any thing on remote server.

regards
Yogi

Re: ERROR: Could not obtain channel pty on remote

by woddrazen, Friday, November 02, 2007, 11:38 (6231 days ago) @ yogi

Hi Yogi,


Can you try to add wodSSH.NET AllocatePty Property in your code and set it to False. You should done that before Connect Method.

AllocatePty Property determines if pseudo terminal is allocated.

More help for AllocatPty Property you can find here:
http://www.weonlydo.com/SSH.NET/Help/WeOnlyDo.Client.SSH.AllocatePty.html

or maybe if you use it already set it to True.
[code]Ssh1.AllocatePty = False
Ssh1.Connect()[/code]
Let us know how it goes.


Regards,
Drazen