php-ssh-connection:提供优雅的语法来连接到 SSH 服务器并执行命令

时间:2024-06-18 08:43:30
【文件属性】:

文件名称:php-ssh-connection:提供优雅的语法来连接到 SSH 服务器并执行命令

文件大小:10KB

文件格式:ZIP

更新时间:2024-06-18 08:43:30

ssh php ssh-client ssh-client-library PHP

PHP SSH 连接 PHP SSH 连接包提供了一种优雅的语法来连接到 SSH 服务器并执行命令。 它支持密码和公私钥对认证,并且可以轻松捕获命令输出和错误。 安装 您可以通过运行以下 Composer 命令来安装 PHP SSH 连接包。 composer require divineomega/php-ssh-connection 用法 请参阅以下基本使用说明。 $ connection = ( new SSHConnection ()) -> to ( 'test.rebex.net' ) -> onPort ( 22 ) -> as ( 'demo' ) -> withPassword ( 'password' ) // ->withPrivateKey($p


【文件预览】:
php-ssh-connection-master
----composer.json(629B)
----.travis.yml(322B)
----phpunit.xml(874B)
----tests()
--------Integration()
--------fixtures()
----LICENSE(7KB)
----src()
--------SSHConnection.php(4KB)
--------SSHCommand.php(991B)
----.coveralls.yml(106B)
----.gitignore(35B)
----README.md(2KB)

网友评论