Update test for ssh2_auth_pubkey

This commit is contained in:
Andreas Treichel
2021-05-30 04:14:43 +02:00
parent e690abe9e7
commit eec58e1271

View File

@@ -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);