I am having touble with ssh2_exec putting strings in execute.
$stream = ssh2_exec($connection, 'userad '. $user. ' -p '. $password);
doesnt work
$stream = ssh2_exec($connection, 'userad user -p password');
works
what i did to fix this was this;
$command = 'useradd ' .$user. ' -p '. $password;
$stream = ssh2_exec($connection, $command);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.