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, 23 Mar 2012

view this page in

ssh2_auth_none

(PECL ssh2 >= 0.9.0)

ssh2_auth_none"none" kimlik doğrulaması yapar

Açıklama

mixed ssh2_auth_none ( resource $oturum , string $kullanıcı )

"none" kimlik doğrulaması genellikle (aslında daima) başarısız olur. Başarısızlıkla ilgili bildirimin bir parçası olarak bu işlev, kabul edilen kimlik doğrulama yöntemlerinin bir listesini döndürür.

Değiştirgeler

oturum

ssh2_connect() ile sağlanan bir SSH bağlantı tanıtıcısı.

kullanıcı

Uzak kullanıcı adı.

Dönen Değerler

Sunucu bir kimlik doğrulama yöntemi olarak "none" kabul ediyorsa TRUE etmiyorsa kabul edilen kimlik doğrulama yöntemlerini içeren bir dizi döner.

Örnekler

Örnek 1 - Kimlik doğrulama yöntemlerinin öğrenilmesi

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

$yontemler ssh2_auth_none($baglanti'birey');

if (
in_array('password'$yontemler)) {
  echo 
"Sunucu parolalı kimlik doğrulamayı destekliyor.\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