简体   繁体   中英

how can I use a web-based ssh terminal emulator in a browser using java as backend and not using applets?

how can I use a web-based ssh terminal emulator in a browser using java as backend and not using applets?

TIA

Leo

ps. looks like most solutions use python ( http://en.wikipedia.org/wiki/Web-based_SSH ) or node.js

In order to use browser based SSH client application to connect to a SSH server, you will most likely going to need to build a proxy server in between those two applications. Because Javascript based SSH client is going to use WebSocket (preferably) or Ajax to connect to the server but typical SSH servers (those do not have HTTP or WebSocket server implementation) will reject your connections. In order to use / build a proxy server for this operation, which language to use is irrelevant (Java, PHP, C#, C++ can all do it) because any languages with TCP/IP socket API can be used to do it.

I hope my answer was helpful, and here is a blog link related to this topic

http://lifehacker.com/5783594/firessh-is-a-browser-based-ssh-client-written-entirely-in-javascript

Bastillion- https ://www.bastillion.io是基于Java的SSH客户端。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM