apnem19 / ssh-connect
SSH connect
Installs: 20
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/apnem19/ssh-connect
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