调佣Renci.SshNet.dll实现ssh交互
By
云-面向百度编程
at 2022-05-29 • 0人收藏 • 920人看过
import dotNet; import console; dll=dotNet.load("Renci.SshNet","/res/Renci.SshNet.dll") sshnet=dll.import("Renci.SshNet") ssh=Renci.SshNet.SshClient("host",port,"user","password") ssh.Connect(); cmd = ssh.RunCommand("ls"); console.log(cmd.Result)
分享下,可以不用调用python实现ssh了
3 个回复 | 最后更新于 2022-06-06
登录后方可回帖
Renci.SshNet.rar