class Net::SSH::Connection::Session

def get_next_channel_id

the counter.
Returns the next available channel id to be assigned, and increments
def get_next_channel_id
  @channel_id_counter += 1
end