On my VPN I have a remote server and a remote router (which is running RouterOS with an API and supports ssh connections). What I want is to write a php script and deploy it on the server so it will connect to the remote router using ip address and login credentials and than, run some commands.
I read on the internet that there is a solution for that which is libssh2.php library, but I cannot figure out how to install/use or even test if it work on the server. The Server is running CentOS.
Thank you in advance!!!