JSch中的Telnet支持 [英] Telnet support in JSch
问题描述
我当前正在构建一个Java应用程序,该应用程序将使用Telnet或SSH连接到交换机.我目前正在使用JSch进行SSH连接,但我在Stack Overflow问题中读到 SSH以及Java的Telnet库,JSch也支持Telnet.
I'm currently building a Java application which will connect to a switch using Telnet or SSH. I'm currently using the JSch for the SSH connection, but I read in Stack Overflow question SSH and Telnet library for java that JSch also supports Telnet.
这是正确的吗?如果是这样,有人可以举一个小例子吗?
Is this correct? And if so, could some one provide a small example?
推荐答案
JSch是SSH库.
The JSch is an SSH library.
引用 JSch网页:
JSch是 SSH2 的纯Java实现.
JSch is a pure Java implementation of SSH2.
在Telnet上没有提及.
No mention on Telnet.
此外,JSch源代码中没有提及"telnet"或"23".
Also, there's no mention of the "telnet" or "23" in the JSch source code.
在任何地方(=使用Socket
Java类)连接的唯一类是Session
(SSH),Proxy*
和ChannelForwardedTCPIP
(端口转发)和ChannelX11
.
The only classes that connect anywhere (= use Socket
Java class) are Session
(SSH), Proxy*
and ChannelForwardedTCPIP
(port forwarding) and ChannelX11
.
这篇关于JSch中的Telnet支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!