-1

I am interested in having someone or as many technicians as possible to assist me,
or provide me with an understanding of how PHP processes an SSH command

ssh username@hostname "ssh-script",

for remote access, embedded in a Bash Shell Script.

Initially I made many attempts to use PHP's ssh2_command()
function to no avail due mostly to the function not being recognized by the PHP interpreter.

My thinking is that perhaps SSH2 is not configured properly on my MAC OS X server.

I based my configuration on what I researched via the internet

which appeared to install properly. Unfortunately, even with the good instruction, SSH2 does not work for me.

Any assistance will be appreciated.

2

1 Answer 1

1

You could try phpseclib, a pure PHP SSH implementation

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.