Query: ssh2_methods_negotiated
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SSH2_METHODS_NEGOTIATED(3) 1 SSH2_METHODS_NEGOTIATED(3) ssh2_methods_negotiated - Return list of negotiated methodsSYNOPSISarray ssh2_methods_negotiated (resource $session)DESCRIPTIONReturns list of negotiated methods.PARAMETERSo $session - An SSH connection link identifier, obtained from a call to ssh2_connect(3).RETURN VALUESEXAMPLESExample #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 ALSOssh2_connect(3). PHP Documentation Group SSH2_METHODS_NEGOTIATED(3)
Related Man Pages |
---|
round(3) - php |
oci_field_name(3) - php |
aggregate_info(3) - php |
rar_close(3) - php |
ssh2_methods_negotiated(3) - php |
Similar Topics in the Unix Linux Community |
---|
error |
If condition getting bypassed |
Top command |
Incrementing in while loop |
echo is not working as expected |