How to execute a command by using by using a SSH connection on a remote IP and then return the results?
I'm facing a chalenge on how to do this by using PHP.
1. Fill username/ password to be validated and only after validation (doable).
2. Fill a textbox with an IP address (doable).
3. Fill another textbox with a command to be executed in the IP machine (doable).
Could you point a way on how to do this ?
4. After that a SSH connection must be done, the command must to be executed and return the results.
I am willing to work for an information security company and must to attend some questions previously.
Thanks in advance