我尝试使用 SSH 创建用户,但在网站上出现此错误:函数 ssh2_connect 不存在。我能做些什么?
我的所有代码:
<?php
if (!function_exists("ssh2_connect")) die("function ssh2_connect doesn't exist");
if (!($con = ssh2_connect("77.241.202.58", 22)))
{
echo "Klaida\n";
}
else
{
if (!ssh2_auth_password($con, "root", "pass")) {
echo "Negalima\n";
} else {
// allright, we're in!
echo "Prisijungta\n";
}
}
?>