我想做一个系统,把该系统放在本地,该系统的功能是管理远程服务器(已Linux为例)的,问题就是怎样跟远程的服务器连接上然后进行控制它(前提我已经知道了Linux服务器的账户和密码)。   大虾们麻烦你们看看怎么做???

解决方案 »

  1.   

    没做过,但你的linux服务器应该有接应的,用web服务器应该可以,但有点危险。,还是用c开发类似木马的服务器算了。
      

  2.   

    webshell  怎么用???  没用过
      

  3.   

    ssh 一了百了 用啥webshell.有火箭你不用要用拖拉机
      

  4.   

       我想用PHP控制啊  怎么弄?求指导
      

  5.   

    exec
    exec
    (PHP 4, PHP 5)exec — Execute an external program说明
    string exec ( string $command [, array &$output [, int &$return_var ]] )
    exec() executes the given command. 参数command 
    The command that will be executed. output 
    If the output argument is present, then the specified array will be filled with every line of output from the command. Trailing whitespace, such as \n, is not included in this array. Note that if the array already contains some elements, exec() will append to the end of the array. If you do not want the function to append elements, call unset() on the array before passing it to exec(). return_var 
    If the return_var argument is present along with the output argument, then the return status of the executed command will be written to this variable. 
    返回值
    The last line from the result of the command. If you need to execute a command and have all the data from the command passed directly back without any interference, use the passthru() function. To get the output of the executed command, be sure to set and use the output parameter. 范例Example #1 An exec() example<?php
    // outputs the username that owns the running php/httpd process
    // (on a system with the "whoami" executable in the path)
    echo exec('whoami');
    ?>