# File lib/net/ssh/session.rb, line 148 def open_channel( type="session", data=nil, &block ) sanity_check channel = @connection.open_channel( type, data ) channel.on_confirm_open(&block) channel end