class Net::SSH::Connection::Session

def host

connect to.
Returns the name of the host that was given to the transport layer to
def host
  transport.host
end