[paramiko] migrate from Telnet to SSH

James Bardin jbardin at bu.edu
Thu Jul 12 11:58:36 PDT 2007


Chris Hallman wrote:
> I found this:
>
> http://www.cpanforum.com/threads/851
>
> I'd bet this is happening to me. Is there a way I can re-use the 
> channel or
> open a dummy channel?
>
A channel is always closed after executing a command, and I *think* 
that's part of the protocol, so there may not be any way around it.
I think what they mean by "dummy channel" is just opening a second 
channel, not using it, then closing it when your done. This may keep the 
server from closing the socket on you. You can see some examples of how 
to set up the channels directly in the demos, or in the SSHClient class 
itself.

-jim



More information about the paramiko mailing list