<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # [ssh2://](https://www.php.net/manual/zh/wrappers.ssh2.php)—Secure Shell 2 安全殼2 **Note**:**該封裝器默認沒有激活** 為了使用ssh2.\*://封裝協議, 你必須安裝來自[??PECL](https://pecl.php.net/)的[??SSH2](https://pecl.php.net/package/ssh2)擴展。 除了支持傳統的 URI 登錄信息,ssh2 封裝協議也支持通過 URL 的主機(host)部分來復用打開連接。 ## 用法 * ssh2.shell://user:pass@example.com:22/xterm * ssh2.exec://user:pass@example.com:22/usr/local/bin/somecmd * ssh2.tunnel://user:pass@example.com:22/192.168.0.1:14 * ssh2.sftp://user:pass@example.com:22/path/to/filename **封裝協議概要** | 屬性 | ssh2.shell | ssh2.exec | ssh2.tunnel | ssh2.sftp | ssh2.scp | | --- | --- | --- | --- | --- | --- | | 受[allow\_url\_fopen](https://www.php.net/manual/zh/filesystem.configuration.php#ini.allow-url-fopen)影響 | Yes | Yes | Yes | Yes | Yes | | 允許讀取 | Yes | Yes | Yes | Yes | Yes | | 允許寫入 | Yes | Yes | Yes | Yes | No | | 允許追加 | No | No | No | Yes(當服務器支持的時候) | No | | 允許同時讀和寫 | Yes | Yes | Yes | Yes | No | | 支持[stat()](https://www.php.net/manual/zh/function.stat.php) | No | No | No | Yes | No | | 支持[unlink()](https://www.php.net/manual/zh/function.unlink.php) | No | No | No | Yes | No | | 支持[rename()](https://www.php.net/manual/zh/function.rename.php) | No | No | No | Yes | No | | 支持[mkdir()](https://www.php.net/manual/zh/function.mkdir.php) | No | No | No | Yes | No | | 支持[rmdir()](https://www.php.net/manual/zh/function.rmdir.php) | No | No | No | Yes | No | **上下文選項(Context)** | 名稱 | 用法 | 默認 | | --- | --- | --- | | *session* | 重復使用預連接的 ssh2 資源 | ? | | *sftp* | 重復使用預先分配的 sftp 資源 | ? | | *methods* | 密鑰交換(key exchange)、主機密鑰(hostkey)、cipher、壓縮和 MAC 方法 | ? | | *callbacks* | ? | ? | | *username* | 以該用戶名連接 | ? | | *password* | 使用的密碼來進行密碼驗證 | ? | | *pubkey\_file* | 用于驗證的公鑰(public key)文件 | ? | | *privkey\_file* | 用于驗證的私鑰(private key)文件 | ? | | *env* | 需要設置的環境變量的關聯數組 | ? | | *term* | 在分配一個 pty 時請求的終端類型 | ? | | *term\_width* | 在分配一個 pty 時請求的終端寬度 | ? | | *term\_height* | 在分配一個 pty 時請求的終端寬度高度 | ? | | *term\_units* | term\_width 和 term\_height 的單位 | **`SSH2_TERM_UNIT_CHARS`** | ``` $session = ssh2_connect('example.com', 22); ssh2_auth_pubkey_file($session, 'username', '/home/username/.ssh/id_rsa.pub', '/home/username/.ssh/id_rsa', 'secret'); $stream = fopen("ssh2.tunnel://$session/remote.example.com:1234", 'r'); ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看