mirror of
https://github.com/php/pecl-networking-ssh2.git
synced 2026-03-23 22:52:06 +01:00
Update test for ssh2_auth_pubkey
This commit is contained in:
@@ -7,7 +7,7 @@ ssh2_auth_pubkey() - Tests authentication with a key
|
||||
|
||||
$ssh = ssh2_connect(TEST_SSH2_HOSTNAME, TEST_SSH2_PORT);
|
||||
|
||||
var_dump(ssh2_auth_pubkey_file($ssh, TEST_SSH2_USER, file_get_contents(TEST_SSH2_PUB_KEY), file_get_contents(TEST_SSH2_PRIV_KEY)));
|
||||
var_dump(ssh2_auth_pubkey($ssh, TEST_SSH2_USER, file_get_contents(TEST_SSH2_PUB_KEY), file_get_contents(TEST_SSH2_PRIV_KEY)));
|
||||
|
||||
$cmd=ssh2_exec($ssh, 'echo "testing echo with key auth"' . PHP_EOL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user