---
name: "libssh2_userauth_authenticated"
section: "3"
platform: "linux"
package: "libssh2"
version: "1.11.1-7"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libssh2_userauth_authenticated"
---

# libssh2\_userauth\_authenticated(3)

return authentication status

## NAME

libssh2\_userauth\_authenticated - return authentication status

## SYNOPSIS

```
#include <libssh2.h>
int
libssh2_userauth_authenticated(LIBSSH2_SESSION *session);
```

## DESCRIPTION

*session* - Session instance as returned by **[libssh2\_session\_init\_ex(3)](/libssh2_session_init_ex/3.md)**

Indicates whether or not the named session has been successfully authenticated.

## RETURN VALUE

Returns 1 if authenticated and 0 if not.

## SEE ALSO

**[libssh2\_session\_init\_ex(3)](/libssh2_session_init_ex/3.md)**
