PHP code example of nilsonpessim / ssh-connect

1. Go to this page and download the library: Download nilsonpessim/ssh-connect library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nilsonpessim / ssh-connect example snippets




lsonpessim\SshConnect\SSH;

var_dump(
    (new SSH('127.0.0.1', 22, root, ''))->exec('ls -la')
);