class Net::SSH::Connection::Channel

def set_remote_env(env)

channel.set_remote_env foo: 'bar', baz: 'whale'

Set a +Hash+ of environment variables in the remote process' environment.
def set_remote_env(env)
  env.each { |key, value| self.env(key, value) }
end