开发者

Psexec vs SSH - Executing remote commands from Windows

I am currently using PHP exec to make use of Psexec to execute commands on a remote machine in my LAN. It sort of wo开发者_JS百科rks, but I run into trouble every so often and have to google around for an answer, which causes me to make changes.

I will soon have to be executing commands on a remote linux machine as well from windows and I was wondering should I just quit Psexec alltogether and make use of SSH commands from PHP. I haven't used the SSH2 extension before and from the docs it looks like I am going to have problems too due to the fact I am using a windows machine.

But rather than mainting Psexec and PHP SSH - should try getting PHP SSH2 to work on a windows machine and on the remote windows machine isntall a SSH server.

Or is there an alternative that I need to consider?


I would recommend using phpseclib, a pure PHP SSH implementation. It's faster than PHP SSH2 to boot.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜