X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php83-pecl-ssh2_1.4.1-1.el8/tests
opt
/
alt
/
tests
/
alt-php83-pecl-ssh2_1.4.1-1.el8
/
tests
/
📁
..
📄
bug63480.phpt
(478 B)
📄
bug79631.phpt
(362 B)
📄
ssh2_auth.phpt
(283 B)
📄
ssh2_auth_pubkey.phpt
(603 B)
📄
ssh2_auth_pubkey_file.phpt
(575 B)
📄
ssh2_connect.phpt
(1.29 KB)
📄
ssh2_exec.phpt
(484 B)
📄
ssh2_send_eof.phpt
(581 B)
📄
ssh2_sftp_001.phpt
(772 B)
📄
ssh2_sftp_002.phpt
(560 B)
📄
ssh2_shell.phpt
(459 B)
📄
ssh2_skip.inc
(407 B)
📄
ssh2_stream_select.phpt
(725 B)
📄
ssh2_test.inc
(1.14 KB)
📄
testkey_rsa
(1.64 KB)
📄
testkey_rsa.pub
(381 B)
Editing: ssh2_auth_pubkey_file.phpt
--TEST-- ssh2_auth_pubkey_file() - 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_file($ssh, TEST_SSH2_USER, TEST_SSH2_PUB_KEY, 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
Upload File
Create Folder