From Libssh2
The authentication layer acts over an established transport layer session. Typically the authentication layer must be used to successfully identify a client to a server before the connection (channel) layer may be used.
Function Reference