At this point I see basically two legitimate uses for telnet: mud’s and nethack. While both forms of entertainment are still popular, they are far from mainstream even in the geekier circles. They have mostly niche audiences, and general public has little or no use for telnet these days. You really do want to use ssh for any kind of remote shell stuff. This is evidenced by Microsoft disabling the telnet client by default in Vista. So the only remaining use for the tool is simply poking around by connecting to random ports. These days I mostly use telnet to see if I can access an email server from a remote location by telnetting to port 110 or 25. But then again, I could also use netcat for that with pretty much the same results.
As you may or may not know, I set up my own little public nethack server that can be found by telneting to luke.kicks-ass.org. And since for some reason he output is a bit garbled in the default windows client, I sought out replacement. PuTTY is probably on of the better free, open telnet clients for windows out there. There is simply not much competition on that market anyway, because the basic windows client is not that bad. Still, I find PuTTY superior.
The problem is, by default handling telnet links such as telnet://luke.kicks-ass.og is by default hard wired to the windows client. Therefore if I wanted to use PuTTY I had to manually open it, and type in the server address instead of just clicking on the link. I decided to change this behavior, and set PuTTY to be my default telnet handler from now on.
How to do it? You can use the little registry hack below:
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\telnet\shell\open\command] @="\"C:\\Program Files\\PuTTY\\putty.exe\" %1
Copy the code snippet, paste it into your favorite text editor and save it as a .reg file. Then double click it to run it. From now on, telnet links should open in putty, as long as you have it installed in C:\Program Files\PuTTY. If you want to change it back to the windows client, here is a snippet to reverse it:
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\telnet\shell\open\command] @="rundll32.exe url.dll,TelnetProtocolHandler %l
Btw, can you think about other legitimate uses of telnet, that would not be appropriate for ssh or other tools? Let me know in the comments.
[tags]telnet, putty, mud, nethack, nethack server, ssh, telnet handler[/tags]