ssh2_methods_negotiated(3) php man page | unix.com

Man Page: ssh2_methods_negotiated

Operating Environment: php

Section: 3

SSH2_METHODS_NEGOTIATED(3)						 1						SSH2_METHODS_NEGOTIATED(3)

ssh2_methods_negotiated - Return list of negotiated methods

SYNOPSIS
array ssh2_methods_negotiated (resource $session)
DESCRIPTION
Returns list of negotiated methods.
PARAMETERS
o $session - An SSH connection link identifier, obtained from a call to ssh2_connect(3).
RETURN VALUES
EXAMPLES
Example #1 Determining what methods were negotiated <?php $connection = ssh2_connect('shell.example.com', 22); $methods = ssh2_methods_negotiated($connection); echo "Encryption keys were negotiated using: {$methods['kex']} "; echo "Server identified using an {$methods['hostkey']} with "; echo "fingerprint: " . ssh2_fingerprint($connection) . " "; echo "Client to Server packets will use methods: "; echo " Crypt: {$methods['client_to_server']['crypt']} "; echo " Comp: {$methods['client_to_server']['comp']} "; echo " MAC: {$methods['client_to_server']['mac']} "; echo "Server to Client packets will use methods: "; echo " Crypt: {$methods['server_to_client']['crypt']} "; echo " Comp: {$methods['server_to_client']['comp']} "; echo " MAC: {$methods['server_to_client']['mac']} "; ?>
SEE ALSO
ssh2_connect(3). PHP Documentation Group SSH2_METHODS_NEGOTIATED(3)
Related Man Pages
sqlsrv_connect(3) - php
oci_field_name(3) - php
rar_close(3) - php
ssh2_connect(3) - php
ssh2_methods_negotiated(3) - php
Similar Topics in the Unix Linux Community
If condition getting bypassed
Trouble with tr
Accepting Upper and Lower case
VG calculation in GB
Find error in the shell script file