roke22/PHP-SSH2-Web-Client
roke22/PHP-SSH2-Web-Client has 201 GitHub stars and 56 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-17 19:29 UTC. Last push 2022-06-28.
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
About
PHP Web Client to connect by SSH to another servers | New project at https://github.com/roke22/Laravel-ssh-client
Web & AppsREADME.md
OriginalNew project with laravel and server inventory with ssh web client
https://github.com/roke22/Laravel-ssh-client

PHP SSH2 Cliente Web
Cliente Web SSH2 en PHP que usa websockets para conectar a otros servidores por SSH con el cliente web.
Necesitas tener activadas libssh2 instalado en el servidor y hospedarlo en un servidor linux, puedes comprobar libssh2 con "phpinfo()" mas informacion en http://php.net/manual/en/book.ssh2.php
INSTALACION
- Instala libssh2. Si tienes plesk puedes seguir este manual https://support.plesk.com/hc/en-us/articles/213930085-How-to-install-SSH2-extension-for-PHP-
- Instala xterm con "npm install" o en el directorio principal ejecuta "npm install xterm"
- En el directorio "server" instala ratchet (http://socketo.me/) con composer, ejecuta en el directorio "server" el comando "composer install"
- Arranca el websocket que esta en la carpeta "server/bin", puedes hacerlo con el comando "php server/bin/websocket.php 2>&1 >/dev/null &" desde el directorio principal
- Modifica la url del websocket en el fichero index.html, linea 81
- Ahora puedes cargar la web
NOTA: Puedes cambiar el tamaño de la consola modificando las constantes ROWS y COLS en Servidorsocket.php pero tambien debes modificarlos en el index.html, en caso de ser diferente no dibujara correctamente la informacion en la terminal web.
LICENCIA
Cliente Web SSH2 esta bajo la licencia MIT, mas informacion en https://opensource.org/licenses/mit-license.php
PHP SSH2 Web Client
SSH2 Web Client that use php and websockets to connect to a SSH server by a webclient.
You need to have libssh2 installed in your server and host the project on a linux server, you can check libssh2 with a "phpinfo()" more info at http://php.net/manual/en/book.ssh2.php
INSTALLATION
- Install libssh2. If you have Plesk Panel follow this manual https://support.plesk.com/hc/en-us/articles/213930085-How-to-install-SSH2-extension-for-PHP-
- Install xterm with npm with "npm install" or on the root folder execute "npm install xterm"
- On the "server" folder install ratchet (http://socketo.me/) with composer, execute on the "server" folder "composer install"
- Run the websocket that is in the "server/bin" folder, you can do it with the commando "php server/bin/websocket.php 2>&1 >/dev/null &" from the root folder.
- Modify the url of the websocket in the index.html file, line 81
- Now you can load the url of the domain.
NOTE: You can change the size of the terminal modifying the constants ROWS and COLS in Servidorsocket.php but you have to do in index.html too. Must be the same size in both files or the web terminal will draw the information in a bad way.
LICENSE
SSH2 Web Client is under MIT license, more info at https://opensource.org/licenses/mit-license.php