# ri > Net::SSH::Authentication::Session

## [Net::SSH::Authentication::Session](https://www.chedong.com/phpMan.php/perldoc/Net%3A%3ASSH%3A%3AAuthentication%3A%3ASession/markdown) < Object

------------------------------------------------------------------------
## Includes:
(from /home/chedong/.local/share/rdoc)
  Loggable
  Constants
  [Transport::Constants](https://www.chedong.com/phpMan.php/perldoc/Transport%3A%3AConstants/markdown)

(from /home/chedong/.local/share/rdoc)
------------------------------------------------------------------------
Represents an authentication session. It manages the authentication of a
user over an established connection (the "transport" object, see
[Net::SSH::Transport::Session](https://www.chedong.com/phpMan.php/perldoc/Net%3A%3ASSH%3A%3ATransport%3A%3ASession/markdown)).

The use of an authentication session to manage user authentication is
internal to [Net::SSH](https://www.chedong.com/phpMan.php/perldoc/Net%3A%3ASSH/markdown) (specifically [Net::SSH](https://www.chedong.com/phpMan.php/perldoc/Net%3A%3ASSH/markdown).start). Consumers of the
[Net::SSH](https://www.chedong.com/phpMan.php/perldoc/Net%3A%3ASSH/markdown) library will never need to access this class directly.
------------------------------------------------------------------------
## Class methods:

  new

## Instance methods:

  allowed_auth_methods
  auth_methods
  authenticate
  expect_message
  next_message
  options
  transport

## Attributes:

  attr_reader allowed_auth_methods
  attr_reader auth_methods
  attr_reader options
  attr_reader transport

