Telnet support in JSch

ぐ巨炮叔叔 提交于 2019-12-13 01:27:34

问题


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?


回答1:


The JSch is an SSH library.

Quoting the JSch web page:

JSch is a pure Java implementation of SSH2.

No mention on Telnet.


Also, there's no mention of the "telnet" or "23" in the JSch source code.

The only classes that connect anywhere (= use Socket Java class) are Session (SSH), Proxy* and ChannelForwardedTCPIP (port forwarding) and ChannelX11.



来源:https://stackoverflow.com/questions/35558374/telnet-support-in-jsch

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!