Ohhhhhh f... me .... i'll take a look again tomorrow morning
Not sure if i'll be able to make it work the first time but i'll do my best
Thanks alot for your help. I'll keep ya posted.
---------- Post updated 04-01-14 at 12:11 PM ---------- Previous update was 03-31-14 at 09:24 PM ----------
Ok round 2
I've looked at your method and mine just want to be sure about the work flow cause i'm still confused.
My method. Or at least what was the original plan:
- User gets to a web page with a form asking for information (ip, host, remove or not).
- He put's all the required info and push send.
- The php code opens up a remote ssh connection (with remote server ip address of server plus credentials).
- That login trigger the login shell which is my bash script. That runs with the desire arguments that comes from the ssh args.
That is the way i see it.
In my head your method goes like this.
- PHP web page trigger the ssh connection which opens up the login shell script on the remote server and asks for information. Script is now open so it takes stdin info that the user provides and uses them to run the script.
Is that correct or am i far left field in lalaland?