mapscii icon indicating copy to clipboard operation
mapscii copied to clipboard

use ssh instead of telnet

Open Darin755 opened this issue 1 year ago • 6 comments

The problem

Telnet is insecure and is easier to compromise. It does not use encryption and has not way of verifying identity

The solution

The best solution would to use ssh. ssh is much more secure and would make it harder for anyone to compromise the connection. It also has the benefit of verifying that the identity of the sever has not changed which would protect against someone hijacking the URL.

Temporary workarounds

You should be able to run telnet over ssh so that it is harder to compromise

Darin755 avatar Jun 29 '22 16:06 Darin755

I think Mosh should be recommended since its lower latency significantly improves the UX of interactive CLI applications.

derhuerst avatar Jun 29 '22 16:06 derhuerst

I've never heard of it but it looks like it could be a option. The only downside is that it is not installed by default in most cases

Darin755 avatar Jun 29 '22 17:06 Darin755

It initializes sessions using SSH, so for regular remote shell operation is is purely opt-in. I think connecting Mosh to mapscii isn't as straightforward though, as AFAIK you wouldn't want a full shell running "in between"?

derhuerst avatar Jun 29 '22 17:06 derhuerst

I agree with the "unsecureness" in terms of not encrypted text traffic - though in this specific (arty) use case, it was about demonstrating what the telnet protocol has to offer "nowadays" vs. no real security impact :)

Besides that, there was a ssh based test implementation back in the prototype days but the upstream lib implementing the server lacked some core features like supporting raw parsing to support mouse interaction. The current telnet sever is based on node-telnet - definitely worth reevaluating the current state of ssh2 libraries to offer a ssh access as well.

rastapasta avatar Jun 30 '22 00:06 rastapasta

Telnet is not shipping with macOS for five years now. SSH would be greatly appreciated.

owiecc avatar Nov 28 '22 18:11 owiecc

With libssh, this could be done quite easily, I think.

Jakuje avatar Apr 23 '24 17:04 Jakuje