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.
我尝试通过 SSH 在 PHP 中使用命令生成密码,dovecotpw 如果密码包含 $ 符号符号,则它与 dovecotpw 在命令行中生成的散列生成不同的散列。
dovecotpw
这是生成密码的行:
echo $ssh->exec('dovecotpw -s CRAM-MD5 -p test$test');
远程 shell 使用$来表示 shell 变量。逃避争论。
$
...('... \'test$test\'');