I have some project to do but killing myself and cannot do anything, i need you help . I am have to make PHP Command to use SSH Connection. I am using Putty , entering IP and Port, than browsing .PPK file ( key authentication file ) and Entering Username And Password, after using command Reboot . so server is rebooting.
Now i want to make all of this simply using PHP , i want to make a textbox and submit button , when entering IP address in textbox and clicking submit button it should make all this reboot command in background. (port is default 22). I will make this textboxes and buttons but cannot get how to make this connection with command and key authentication. if somebody know this please help me solving this problem. i cannot take it any more.