📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-06-26 11:20:07
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php80-pecl-ssh2_1.5.0-1.el8
/
tests
📍 /opt/alt/tests/alt-php80-pecl-ssh2_1.5.0-1.el8/tests
🔄 Refresh
✏️
Editing: ssh2_auth_pubkey.phpt
Read Only
--TEST-- ssh2_auth_pubkey() - Tests authentication with a key --SKIPIF-- <?php require('ssh2_skip.inc'); ?> --FILE-- <?php require('ssh2_test.inc'); $ssh = ssh2_connect(TEST_SSH2_HOSTNAME, TEST_SSH2_PORT); 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); var_dump($cmd); stream_set_blocking($cmd, true); $response = stream_get_contents($cmd); echo $response . PHP_EOL; --EXPECTF-- bool(true) resource(%d) of type (stream) testing echo with key auth
💾 Save Changes
❌ Cancel