class Net::SSH::Authentication::Methods::Abstract

def session_id

an SSH connection.
Returns the session-id, as generated during the first key exchange of
def session_id
  session.transport.algorithms.session_id
end