downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ssh2_auth_password> <ssh2_auth_hostbased_file
[edit] Last updated: Fri, 10 Feb 2012

view this page in

ssh2_auth_none

(PECL ssh2 >= 0.9.0)

ssh2_auth_none"none" として認証する

説明

mixed ssh2_auth_none ( resource $session , string $username )

通常失敗する(そしてそうあるべき)"none" 認証を試みます。 失敗の一環として、サーバは可能な認証メソッドの一覧を返します。

パラメータ

session

ssh2_connect() のコールによって取得した SSH 接続リンク ID。

username

リモートのユーザ名。

返り値

もしサーバが username に対する認証メソッドとして "none" を受け入れる場合、この関数は単純に TRUE を返します。

例1 認証メソッドの一覧の取得

<?php
$connection 
ssh2_connect('shell.example.com'22);

$auth_methods ssh2_auth_none($connection'user');

if (
in_array('password'$auth_methods)) {
  echo 
"Server supports password based authentication\n";
}
?>



add a note add a note User Contributed Notes ssh2_auth_none
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites