billchurch / webssh2

Web SSH Client using ssh2, socket.io, xterm.js, and express. webssh webssh2
MIT License
2.31k stars 533 forks source link

Telnet capability? #180

Open jdmcroy opened 4 years ago

jdmcroy commented 4 years ago

Has anyone ever explored adding telnet capability? http://localhost:222/telnet/...

billchurch commented 4 years ago

I've thought about it, and it seems like it would be possible... The one trick is authentication SSO, since telnet is pretty much free-form and you have to "expect" user and password and detect failures. There's not a standard around this so the solution would need to be flexible to account for differences in systems.

billchurch commented 4 years ago

This project seems promising for the node telnet-client. The front-end wouldn't need to change much, if at all.

https://github.com/mkozjak/node-telnet-client#readme

jdmcroy commented 4 years ago

Thanks for the link. That does look promising. I'll take a deeper look. It just seemed that based on the URL pattern (http://localhost:222/ssh/...) for web2ssh2 adding telnet would be a natural extension.

billchurch commented 4 years ago

Totally agree, and it looks like some of the logic for dealing with logging in, is handled by that project.

cunningr commented 4 years ago

Would love to see Telnet added. We would like to use this for managing network infrastructure and whilst SSH is the mainstay for networked connectivity, no-net connectivity via a terminal server and reverse telnet still seems to be the most common mode of access.

lpiskuno commented 2 years ago

telnet could be added and not to worry about authentication. I think just opening session and provide user with the login prompt would be sufficent