« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 7 of about 7 for hostkey (0.001 sec.)
ssh2_auth_hostbased_file — ホスト公開鍵を使用して認証を行う | PHP 8.3 13432
ssh2_auth_hostbased_file (PECL ssh2 >= 0.9.0) ssh2_auth_hostbased_file — ホスト公開鍵を使用して認証を行う 説明 function ssh2_auth_hostbased_file ( resource $session , string $username , string $hostname , string $pubkeyfile , string $privke ... false を返します。 例 例1 ホスト公開鍵を使用した認証 <?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 ...
https://man.mtool.work/php/8.3/function.ssh2-auth-hostbased-file.html
ssh2_fingerprint — リモートサーバーのフィンガープリントを処理する | PHP 8.3 8851
ssh2_fingerprint (PECL ssh2 >= 0.9.0) ssh2_fingerprint — リモートサーバーのフィンガープリントを処理する 説明 function ssh2_fingerprint ( resource $session , int $flags = SSH2_FINGERPRINT_MD5 | SSH2_FINGERPRINT_HEX ): string アクティブなセッ ... ssh2_fingerprint ( $connection , SSH2_FINGERPRINT_MD5 | SSH2_FINGERPRINT_HEX ); if ( $fingerprint != $known_host ) { die( "HOSTKEY MISMATCH!\n" . "Possible Man-In-The-Middle Attack?" ); } ?> 他のマニュアルの関連ページ Linux JM yppoll(8) Linux JM ripquer ...
https://man.mtool.work/php/8.3/function.ssh2-fingerprint.html
ssh2_auth_pubkey — Authenticate using a public key in a variable | PHP 8.3 8615
ssh2_auth_pubkey (PECL ssh2 >= 1.4) ssh2_auth_pubkey — Authenticate using a public key in a variable 説明 function ssh2_auth_pubkey ( resource $session , string $username , string $pubkey , string $privkey , string $passphrase = ? ): bool A ... を返します。 例 例1 Authentication using a public key <?php $connection = ssh2_connect ( 'shell.example.com' , 22 , array( 'hostkey' => 'ssh-rsa' )); $publicKey = file_get_contents ( '/home/username/.ssh/id_rsa.pub' ); $privateKey = file_get_contents ( ' ...
https://man.mtool.work/php/8.3/function.ssh2-auth-pubkey.html
ssh2_methods_negotiated — ネゴシエートされたメソッドのリストを返す | PHP 8.3 8615
ssh2_methods_negotiated (PECL ssh2 >= 0.9.0) ssh2_methods_negotiated — ネゴシエートされたメソッドのリストを返す 説明 function ssh2_methods_negotiated ( resource $session ): array ネゴシエートされたメソッドのリストを返します。 パラメータ ses ... ); echo "Encryption keys were negotiated using: { $methods [ 'kex' ]} \n" ; echo "Server identified using an { $methods [ 'hostkey' ]} with " ; echo "fingerprint: " . ssh2_fingerprint ( $connection ) . "\n" ; echo "Client to Server packets will use meth ...
https://man.mtool.work/php/8.3/function.ssh2-methods-negotiated.html
ssh2_auth_pubkey_file — ファイルから読み込んだ公開鍵を使用した認証を行う | PHP ... 8397
ssh2_auth_pubkey_file (PECL ssh2 >= 0.9.0) ssh2_auth_pubkey_file — ファイルから読み込んだ公開鍵を使用した認証を行う 説明 function ssh2_auth_pubkey_file ( resource $session , string $username , string $pubkeyfile , string $privkeyfile , stri ... た場合に false を返します。 例 例1 公開鍵を用いた認証 <?php $connection = ssh2_connect ( 'shell.example.com' , 22 , array( 'hostkey' => 'ssh-rsa' )); if ( ssh2_auth_pubkey_file ( $connection , 'username' , '/home/username/.ssh/id_rsa.pub' , '/home/userna ...
https://man.mtool.work/php/8.3/function.ssh2-auth-pubkey-file.html
ssh2:// — Secure Shell 2 | PHP 8.3 7924
ssh2:// ssh2:// — Secure Shell 2 説明 ssh2.shell:// ssh2.exec:// ssh2.tunnel:// ssh2.sftp:// ssh2.scp:// (PECL) 注意 : このラッパーはデフォルトでは有効になっていません ssh2.*:// ラッパーを使用するには、 » PECL から » SSH2 拡張モジュールを ... 用法 デフォルト session 再利用する接続済みの ssh2 リソース sftp 再利用する割り当て済みの sftp リソース methods Key exchange, hostkey, cipher, compression, および MAC methods callbacks username 接続するユーザー名 password パスワード認証に使用するパスワード ...
https://man.mtool.work/php/8.3/wrappers.ssh2.html
ssh2_connect — SSH サーバーに接続する | PHP 8.3 7706
ssh2_connect (PECL ssh2 >= 0.9.0) ssh2_connect — SSH サーバーに接続する 説明 function ssh2_connect ( string $host , int $port = 22 , array $methods = ? , array $callbacks = ? ): resource | false リモートの SSH サーバーとの接続を確立します。 ... 順にカンマ区切りにする。 diffie-hellman-group1-sha1 、 diffie-hellman-group14-sha1 および diffie-hellman-group-exchange-sha1 hostkey 通知するホスト鍵メソッドのリスト。優先する順にカンマ区切りにする。 ssh-rsa および ssh-dss client_to_server クライアントから ...
https://man.mtool.work/php/8.3/function.ssh2-connect.html
PREV 1 NEXT