class Net::SSH::Connection::Channel
def on_close(&block)
puts "remote end is closing!"
channel.on_close do |ch|
channel is closed. This is invoked with the channel as the sole argument.
Registers a callback to be invoked when the server acknowledges that a
def on_close(&block) old, @on_close = @on_close, block old end