Hello:
I would like to as for some suggestions on how to get this to work…
I have successfully created a connection to my remote server via the ssh_connect() command, but what I am having issues with, is a simple “Use a file (in the local server)” to run on the remote server…
I managed to run this if it is located in the remote server by:
ssh2_exec($connection, ‘sudo -u UserName -S shutdown -r now -s < file-in-local-server’);
Is there a way to have the file I that contains the information in the Local Server, and once the connection is established, pass the local file’s info to the remote server?
I will appreciate the help…
Thanks!
Happy New year…