ssh2_auth_agent(3) php man page | unix.com

Man Page: ssh2_auth_agent

Operating Environment: php

Section: 3

SSH2_AUTH_AGENT(3)							 1							SSH2_AUTH_AGENT(3)

ssh2_auth_agent - Authenticate over SSH using the ssh agent

SYNOPSIS
bool ssh2_auth_agent (resource $session, string $username)
DESCRIPTION
Authenticate over SSH using the ssh agent Note The ssh2_auth_agent(3) function will only be available when the ssh2 extension is compiled with libssh >= 1.2.3.
PARAMETERS
o $session - An SSH connection link identifier, obtained from a call to ssh2_connect(3). o $username - Remote user name.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1 Authenticating with a ssh agent <?php $connection = ssh2_connect('shell.example.com', 22); if (ssh2_auth_agent($connection, 'username')) { echo "Authentication Successful! "; } else { die('Authentication Failed...'); } ?> PHP Documentation Group SSH2_AUTH_AGENT(3)
Related Man Pages
ssh-agent(1) - redhat
ssh-copy-id(1) - linux
libgnome-keyring(3) - opensolaris
ssh-agent(1) - sunos
ssh2_sftp_mkdir(3) - php
Similar Topics in the Unix Linux Community
User Guide: Posting in the Emergency Forum
Please Welcome Don Cragun as Lead Moderator
Status of UNIX.COM Forum Transformation
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun