Home > PHP > Function > SSH2 > ssh2_auth_password()

ssh2_auth_password()

ssh2_auth_password - Authenticate over SSH using a plain password

Syntax

bool ssh2_auth_password (resource $session, string $username, string $password)

Arguments

  • session - An SSH connection link identifier, obtained from a call to ssh2_connect().
  • username - Remote user name.
  • password - Password for username

Description

Authenticate over SSH using a plain password

Version

PHP PECL ssh2 >= 0.9.0

Return value

Returns TRUE on success or FALSE on failure.