🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
提供对实现SSH2协议的libssh2功能的绑定。 该库使用安全的密码传输提供对远程计算机上的资源(shell,远程exec,隧道,文件传输)的访问。 libssh2可从http://libssh2.org/获得。ssh2 [https://pecl.php.net/package/ssh2](https://pecl.php.net/package/ssh2) * [预定义常量](https://www.php.net/manual/en/ssh2.constants.php) * [SSH2功能](https://www.php.net/manual/en/ref.ssh2.php) * [ssh2\_auth\_agent](https://www.php.net/manual/en/function.ssh2-auth-agent.php)—使用ssh代理通过SSH进行身份验证 * [ssh2\_auth\_hostbased\_file](https://www.php.net/manual/en/function.ssh2-auth-hostbased-file.php)—使用公共主机密钥进行身份验证 * [ssh2\_auth\_none](https://www.php.net/manual/en/function.ssh2-auth-none.php)—验证为“无” * [ssh2\_auth\_password](https://www.php.net/manual/en/function.ssh2-auth-password.php)—使用普通密码通过SSH进行身份验证 * [ssh2\_auth\_pubkey\_file](https://www.php.net/manual/en/function.ssh2-auth-pubkey-file.php)—使用公共密钥进行身份验证 * [ssh2\_connect](https://www.php.net/manual/en/function.ssh2-connect.php)—连接到SSH服务器 * [ssh2\_disconnect](https://www.php.net/manual/en/function.ssh2-disconnect.php)—关闭与远程SSH服务器的连接 * [ssh2\_exec](https://www.php.net/manual/en/function.ssh2-exec.php)—在远程服务器上执行命令 * [ssh2\_fetch\_stream](https://www.php.net/manual/en/function.ssh2-fetch-stream.php)—获取扩展的数据流 * [ssh2\_fingerprint](https://www.php.net/manual/en/function.ssh2-fingerprint.php)—检索远程服务器的指纹 * [ssh2\_methods\_negotiated](https://www.php.net/manual/en/function.ssh2-methods-negotiated.php)—协商方法的返回列表 * [ssh2\_publickey\_add](https://www.php.net/manual/en/function.ssh2-publickey-add.php)—添加授权的公钥 * [ssh2\_publickey\_init](https://www.php.net/manual/en/function.ssh2-publickey-init.php)—初始化[公钥](https://www.php.net/manual/en/function.ssh2-publickey-init.php)子系统 * [ssh2\_publickey\_list](https://www.php.net/manual/en/function.ssh2-publickey-list.php)—列出当前授权的[公共密钥](https://www.php.net/manual/en/function.ssh2-publickey-list.php) * [ssh2\_publickey\_remove](https://www.php.net/manual/en/function.ssh2-publickey-remove.php)—删除授权的公钥 * [ssh2\_scp\_recv-](https://www.php.net/manual/en/function.ssh2-scp-recv.php)通过SCP请求文件 * [ssh2\_scp\_send](https://www.php.net/manual/en/function.ssh2-scp-send.php)—通过SCP发送文件 * [ssh2\_sftp\_chmod](https://www.php.net/manual/en/function.ssh2-sftp-chmod.php)—更改文件模式 * [ssh2\_sftp\_lstat](https://www.php.net/manual/en/function.ssh2-sftp-lstat.php)—统计符号链接 * [ssh2\_sftp\_mkdir](https://www.php.net/manual/en/function.ssh2-sftp-mkdir.php)—创建目录 * [ssh2\_sftp\_readlink](https://www.php.net/manual/en/function.ssh2-sftp-readlink.php)—返回符号链接的目标 * [ssh2\_sftp\_realpath](https://www.php.net/manual/en/function.ssh2-sftp-realpath.php)—解决提供的路径字符串的[真实](https://www.php.net/manual/en/function.ssh2-sftp-realpath.php)路径 * [ssh2\_sftp\_rename-](https://www.php.net/manual/en/function.ssh2-sftp-rename.php)重命名远程文件 * [ssh2\_sftp\_rmdir](https://www.php.net/manual/en/function.ssh2-sftp-rmdir.php)—删除目录 * [ssh2\_sftp\_stat](https://www.php.net/manual/en/function.ssh2-sftp-stat.php)—统计远程文件系统上的文件 * [ssh2\_sftp\_symlink](https://www.php.net/manual/en/function.ssh2-sftp-symlink.php)—创建一个符号链接 * [ssh2\_sftp\_unlink](https://www.php.net/manual/en/function.ssh2-sftp-unlink.php)—删除文件 * [ssh2\_sftp](https://www.php.net/manual/en/function.ssh2-sftp.php)—初始化SFTP子系统 * [ssh2\_shell](https://www.php.net/manual/en/function.ssh2-shell.php)—请求一个交互式外壳 * [ssh2\_tunnel](https://www.php.net/manual/en/function.ssh2-tunnel.php)—通过远程服务器打开隧道