承接 bravo3/ssh 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bravo3/ssh

Composer 安装命令:

composer require bravo3/ssh

包简介

Interactive SSH2 suite for PHP 5.4

README 文档

README

This module is a PHP wrapper for the libssh2 extension with support for interactive sessions. With interactive session support you can mimic a user terminal allowing you access to things such as sudo which might not typically be available to remote sessions. Unlike most libssh2 libraries, you do not need a public key file to authenticate using keys pairs.

Installation

This project requires PHP-SSH2, which can be installed with pecl:

yum install libssh2-devel
# apt-get install libssh2-1-dev
yes '' | pecl install -f ssh2
echo "extension=ssh2.so" > /etc/php.d/ssh2.ini
# echo "extension=ssh2.so" > /etc/php5/mods-available/ssh2.ini
# ln -s /etc/php5/mods-available/ssh2.ini /etc/php5/apache2/conf.d/20-ssh2.ini
# ln -s /etc/php5/mods-available/ssh2.ini /etc/php5/cli/conf.d/20-ssh2.ini

Usage

History

1.4.2

  • Added timeout & line-ending normalisation to smart commands

1.4.1

  • Added the ability to detect remote shell type
  • Smart commands now work on C-shell variants
  • Added pause timeouts to all other shell read functions
  • Added the ability to normalise line-endings in shell output

1.4.0

  • Deprecated version 1.3.x
  • Fixed logic of the ssh2_tunnel() function

1.3.0

  • Added support to tunnel connections

1.2.0

  • Added ability to connect using just a private PEM key

1.1.0

  • Added SCP support

Known Bugs/Limitations

Bugs

This wrapper is subject to the same bugs that exist in the ssh2 extension, notable of those are the encrypted private key files running in Ubuntu/Debian:

Limitations

Features implemented:

  • Password and key-pair authentication
  • Optional fingerprint checking
  • Command execution
  • Interactive shell (mimic user)
  • SCP transfers
  • Public key generation (connect using just a private key)
  • Tunnels (remote connections)

Notable features not implemented:

  • Agent and host authentication
  • SFTP transfers

统计信息

  • 总下载量: 1.04k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 20
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 19
  • Watchers: 7
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-03-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固