用于 SSH 和 Telnet 的 C# 库 [英] C# Library for SSH and Telnet

查看:17
本文介绍了用于 SSH 和 Telnet 的 C# 库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个 C# 库,它在同一界面下提供对 SSH 和 Telnet 的访问.什么是好的选择?

I'm looking for a C# library that provides access to both SSH and Telnet under the same interface. What would be a good choice?

推荐答案

我推荐 Granados 用于 SSH 堆栈.它已被用于许多产品.

I recommend Granados for SSH stack. It has been used in many products.

我推荐这个 代码项目页面用于 telnet 堆栈.

I recommend this code project page for telnet stack.

您还可以下载Poderosa 终端模拟器.它使用 Granados 作为 SSH 堆栈,并且有自己的 telnet 堆栈实现.

You can also download Poderosa terminal emulator. It's using Granados as the SSH stack and it has its own implementation of telnet stack.

Poderosa 是非常可插拔的.它在网络堆栈上提供了一个很好的抽象层.如果你没有时间编写自己的统一界面,你真的应该看看他们的工作.它提供了在同一个界面下访问 SSH 和 Telnet 的功能,就像您想要的那样.不幸的是,它是由日本工程师编写的.所有的内嵌评论都是用日语写的.您可能需要一些时间来理解代码.

Poderosa is very pluggable. It provides a good abstraction layer on the network stacks. If you don't have time to write your own unified interface, you should really check out their work. It provides access to both SSH and Telnet under the same interface like what you want. Unfortunately, it's written by Japanese engineers. All the inline comments are written in Japanese. It may take you some time to understand the codes.

您可能还想查看终端仿真库.由于您要处理从远程终端返回的数据,大多数终端返回 转义字符序列 用于设备控制命令、字体颜色/样式或光标移动命令.

You may also like to check out the terminal emulation library as well. Since you are going to process the data returning from the remote terminals, most terminals return escape character sequence for device control commands, font color/style or cursor movement commands.

你可能没有注意到,即使是一个简单的命令ls -al",返回的内容也可能涉及一些转义字符序列.这些转义序列是为了让目录名和文件名以不同的颜色显示.

You may not notice that even in a simple command "ls -al", the returned content may also involve some escape character sequences. Those escape sequences are to make the directory name and file name shown in different colors.

同样,对于终端仿真,我能找到的最好的 C# 库是 Poderosa.如果您不必使用 C# 库,PuTTY 有最好的终端仿真支持.它可以识别目前我见过的几乎所有转义字符序列.

Again, for terminal emulation, the best C# library I can find is Poderosa. If you don't have to use C# library, PuTTY has the best terminal emulation support. It can recognize almost all escape character sequences I have seen so far.

虽然我强烈建议您查看 Poderosa 和 Granados,但请注意,这些项目似乎不再活跃.嗯..即便如此,它仍然是我见过的最好的.

Although I highly recommend you to look at Poderosa and Granados, please be aware that these projects seem to be no longer active. Well.. even so, it's still the best I have seen.

这篇关于用于 SSH 和 Telnet 的 C# 库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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