T
T
trace82017-10-04 23:09:51
PHP
trace8, 2017-10-04 23:09:51

How to call commands and execute files via SSH from PHP?

There is a remote server and a PHP application with a web face. You need to teach a PHP application to connect via SSH to another server and execute git, composer, touch, mv, mkdir and others commands on it + execute files.
Are there any tools for this? Is this generally possible?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nozzy, 2017-10-04
@trase8

php.net/manual/en/function.ssh2-exec.php

Z
zorca, 2017-10-05
@zorca

Full of ready-made tools:
Symfony Console
Deployer
Rocketeer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question