Open source Telnet Java API

前端 未结 3 1683
囚心锁ツ
囚心锁ツ 2021-01-12 00:47

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 wi

相关标签:
3条回答
  • 2021-01-12 01:00

    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).

    0 讨论(0)
  • 2021-01-12 01:04

    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/

    0 讨论(0)
  • 2021-01-12 01:06

    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.

    0 讨论(0)
提交回复
热议问题