C#.net中的SSh客户端 [英] SSh client in C# .net

查看:399
本文介绍了C#.net中的SSh客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想编写一个程序来访问我的路由器并执行一些命令,同时将其输出保存到磁盘上的文件中.我已经在Linux中使用python pexpect模块成功完成了此操作.我正在启动C#.net并想对其进行尝试.搜索谷歌给了我一些在ssh客户端上的结果,但是我不知道它们中的任何一个都可以使我得到结果吗?

I want to write a program that accesses my routers and perform some command, while its output is save to file on my disk. I have done this successfully using python pexpect module in linux. I am starting C# .net and want to try over it. Searching google gave me some result on ssh client, but i dont know if any of them can get me the result back ?

任何想法,我都知道我不应该要求任何代码片段,只要有正确的方向,特别是有人用它从ssh服务器中获取配置的情况下,请指向我正确的方向.

Any ideas, i know i shouldnt be asking for any code snippet, just point me in right direction specially if someone has used it to fetch configurations off ssh servers.

推荐答案

您可以尝试 SSH.NET库.

这篇关于C#.net中的SSh客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆