• Post Reply Bookmark Topic Watch Topic
  • New Topic

telnet tls

 
zb cong
Ranch Hand
Posts: 416
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello
i want to write a program by java which run on windows box, and it telnet to remote aix server (port 23) send command, i want to encrypts the channel, who can give me the possible solution?

otherwise, it seem like the tls works, but i don't know how, and if i use the jakarta apache's commons net component, how can i implement such function?


thanks!
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's usually what the SSH protocol is used for. If you google for "java ssh" you'll find several client libraries for it.
 
Van Glass
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ssh is one solution. The other is to tunnel your telnet connection thru an ssl server port on the remote system. This way the connection from you to the server is protected using SSL and the data is then forwarded from the server to the local port running telnet. You will of course need to configure this on your server so port forwarding can occur.

For an example of the client side see the com.jscape.inet.telnetssl.TelnetSsl class found in Secure iNet Factory

http://www.jscape.com/secureinetfactory/

See the JavaDoc for details.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!