<?php
$connection=ssh2_connect('172.16.10.3',22);
ssh2_auth_password($connection,$user,$pass);$cmd="/data/script/start.sh knowledgelib_fix_2";$ssh2_exec($connection,$cmd);?>
前提是php要安装ssh.so扩展.本文共 246 字,大约阅读时间需要 1 分钟。
<?php
$connection=ssh2_connect('172.16.10.3',22);
ssh2_auth_password($connection,$user,$pass);$cmd="/data/script/start.sh knowledgelib_fix_2";$ssh2_exec($connection,$cmd);?>
前提是php要安装ssh.so扩展.转载于:https://www.cnblogs.com/jyb2014/p/4128525.html