Jordz2203
Verified User
- Joined
- Sep 8, 2022
- Messages
- 74
Hey everyone, our server is running Cloud Linux and Direct Admin, so we have a terminal within DA as well as remote SSH via the direct admin username and password of the profile.
But the thing is, we are trying to run some SSH code remotely (we have a PHP script that is connecting and executing the command), but the thing is that as soon as the SSH command gets executed, it disconnects from the session, cancelling the SSH command. How can we go about running this SSH command without needing to keep the PHP script running? The script times out after 30 seconds and the command takes longer than that to execute. I thought of using screen but Ive never used it with this PHP library and Im not even sure Direct Admins SSH allows screen.
But the thing is, we are trying to run some SSH code remotely (we have a PHP script that is connecting and executing the command), but the thing is that as soon as the SSH command gets executed, it disconnects from the session, cancelling the SSH command. How can we go about running this SSH command without needing to keep the PHP script running? The script times out after 30 seconds and the command takes longer than that to execute. I thought of using screen but Ive never used it with this PHP library and Im not even sure Direct Admins SSH allows screen.