Closing a channel: Invalid recipient?
From: Boris Shingarov (bshingar@sympatico.ca)
Date: 12/06/02
- Previous message: Campano, Troy: "RE: protocol version"
- Next in thread: Markus Friedl: "Re: Closing a channel: Invalid recipient?"
- Reply: Markus Friedl: "Re: Closing a channel: Invalid recipient?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 06 Dec 2002 13:48:32 -0500 From: Boris Shingarov <bshingar@sympatico.ca> To: secureshell@securityfocus.com
Hi,
I am developing an application that talks to a server over SSH2.
Namely, it will execute some commands on the server. So far
what I do is open an SSH session, open an "exec" channel, do
whatever I need, then close the session.
This works perfectly. However, I need to do several things
in succession; therefore I would like to open a session once,
and reuse it by opening and closing an exec channel for each
command. (Thus saving on re-authenticating every time). So
I open the channel with "sender" like 0, 1 and so on; the
server gives me back "recipient" ids again like 0, 1 and so
on. However, when I am done with the command and send a
MSG_CHANNEL_CLOSE, the server replies with MSG_DISCONNECT
with reason code PROTOCOL_ERROR and description: Invalid
channel number? What am I missing?
Boris
- Next message: bladi: "Re: Remote commands using ssh-agent"
- Previous message: Campano, Troy: "RE: protocol version"
- Next in thread: Markus Friedl: "Re: Closing a channel: Invalid recipient?"
- Reply: Markus Friedl: "Re: Closing a channel: Invalid recipient?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|