Open source Telnet Java API

落花浮王杯 提交于 2019-12-04 01:03:37

问题


Is there an open source telnet API/library out there for Java (something like Python telnetlib)? I need to connect to a server using telnet and execute some commands from within a Java program.


回答1:


My preference is to use the Apache Commons-Net library. http://commons.apache.org/net/ It supports many client protocols, including Telnet.

I've used this in the past and it works quite well.




回答2:


Maybe is worth considering using SSH protocol, instead of Telnet. Telnet is much less secure, for instance all the data is transmitted as plain text (including your passwords).




回答3:


Sure is.

http://sourceforge.net/projects/jtelnet/ (EDIT: Noted as crap.)

Here is an Apache project which is presumably much more handy:

http://commons.apache.org/net/



来源:https://stackoverflow.com/questions/3480755/open-source-telnet-java-api

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