Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在执行 ssh2_exec 时遇到了麻烦。
$stream = ssh2_exec($connection, 'userad '. $user. ' -p '. $password); doesnt work $stream = ssh2_exec($connection, 'userad user -p password'); works
我所做的就是解决这个问题;
$command = 'useradd ' .$user. ' -p '. $password; $stream = ssh2_exec($connection, $command);