<?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扩展.

相关文章:

  • 2021-12-10
  • 2021-10-15
  • 2021-09-23
  • 2022-02-12
  • 2021-12-21
  • 2021-10-03
  • 2021-09-27
  • 2021-10-24
猜你喜欢
  • 2021-08-29
  • 2021-09-01
  • 2021-11-28
  • 2022-12-23
  • 2021-06-19
  • 2021-08-12
  • 2022-01-11
  • 2021-08-28
相关资源
相似解决方案