File: ssh2_auth.phpt

package info (click to toggle)
php-ssh2 1.3.1%2B0.13-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 472 kB
  • sloc: ansic: 5,963; xml: 477; pascal: 38; makefile: 1
file content (11 lines) | stat: -rw-r--r-- 283 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
ssh2_auth_FOO() - Attempt to authenticate to a remote host
--SKIPIF--
<?php require('ssh2_skip.inc'); ssh2t_needs_auth(); ?>
--FILE--
<?php require('ssh2_test.inc');

$ssh = ssh2_connect(TEST_SSH2_HOSTNAME, TEST_SSH2_PORT);
var_dump(ssh2t_auth($ssh));
--EXPECT--
bool(true)