apnem19 / ssh-connect
SSH connect
1.0.3
2023-12-16 03:39 UTC
Requires
- php: >=8.0
- phpseclib/phpseclib: ^2.0
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