apnem19/ssh-connect

1.0.3 2023-12-16 03:39 UTC

This package is auto-updated.

Last update: 2024-05-16 04:51:39 UTC


README

Type can be TYPE_SFTP or TYPE_SSH
$connect = new SSHConnect(type, 'ip', 'login', 'password', 'port'); //Connecting to SSH
$first = $connect->exec('ls /root'); //Execute the command

echo $first //We get the answer