ssh2_auth_hostbased_fileとは? わかりやすく解説

Weblio 辞書 > コンピュータ > PHP関数リファレンス > ssh2_auth_hostbased_fileの意味・解説 

ssh2_auth_hostbased_file

(PECL)
ssh2_auth_hostbased_file — ホスト公開鍵使用して認証を行う

説明

bool ssh2_auth_hostbased_file ( resource session, string username, string hostname, string pubkeyfile, string privkeyfile [, string passphrase [, string local_username]] )
ファイルから読み込まれたホスト公開鍵を使用して認証を行います。 もし privkeyfile が暗号化されている (そのはずです) 場合、パスフレーズが渡される必要があります。 もし local_username を省略した場合、 username の値が使用されます。
例 2197. ホスト公開鍵を使用した認証
<?php
$connection = ssh2_connect('shell.example.com', 22, array('hostkey'=>'ssh-rsa'));

if (ssh2_auth_hostbased_file($connection, 'remoteusername', 'myhost.example.com',
                             '/usr/local/etc/hostkey_rsa.pub',
                             '/usr/local/etc/hostkey_rsa', 'secret',
                             'localusername')) {
  echo "Public Key Hostbased Authentication Successful\n";
} else {
  die('Public Key Hostbased Authentication Failed');
}
?>

注意: ssh2_auth_hostbased_file() には libssh2 >= 0.7 と PHP/SSH2 >= 0.7 が必要です。



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「ssh2_auth_hostbased_file」の関連用語

ssh2_auth_hostbased_fileのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ssh2_auth_hostbased_fileのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
PHP Documentation GroupPHP Documentation Group
Copyright © 1997 - 2024 by the PHP Documentation Group.

©2024 GRAS Group, Inc.RSS