As you’ll know if you read around my blog and other pages here, I do networks with a tilt towards security. At the moment I’m alternating between studying for a Checkpoint CCSE (Checkpoint Certified Security Expert) and studying the parts needed for a CCNP (Cisco Certified Network Professional), having done a CCSP (Cisco Certified Security Professional) a couple of years back.
Right now I’m on the CCNP kick, and as part of that I’ve been using some remote labs (handy if you can get them). One of the things that these remote labs use is a telnet connection to control the kit you’re configuring, and that connection is usually accessed via a telnet:// link on a web page. Unfortunately these don’t work under Internet Explorer 7 without some tweaking.
So, right here, and as much for my own records as to share it with the internet as a whole, I’m going to meander over the tweaks needed not only to get the telnet handler working on IE7, but also how to set it to use PuTTY, my terminal emulator and ssh client of choice.
The process can be broken down into three steps
- download putty (link)
- enable the telnet handler (link)
- set putty as your telnet handler application (link)
The first step of course is to download and install PuTTY from its homepage, go on there’s no reason not to. I reckon that it’s among the finest pieces of software available on the internet, and even better than that – it’s free! You cannot go wrong at that price can you?
Next you’ll want to re-enable to telnet handler. I’m not quite sure why Microsoft decided to disable it in IE7, it worked in IE6 and previous. Sure telnet is an old and not wonderfully secure protocol (it sends everything you type in plain text, so mr nasty in the middle can read your passwords), it isn’t even installed by default on Vista, but it’s an old friend, and a handy troubleshooting tool.
To enable the handler you need to run up regedit or your windows registry editor of choice and create the key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_DISABLE_TELNET_PROTOCOL”, in that key you need to create a DWORD called “iexplore.exe” and set its value to 0 (you’re disabling telnet being disabled see?).
For your convenience I have placed a .reg file here that does this bit for you.
The final thing to do is set putty to be the telnet handler. The instructions are actually contained in the release notes on the homepage, but it’s always good to repeat things eh?
Still got regedit open? Navigate to “HKEY_CLASSES_ROOT\telnet\shell\open\command” and replace the string value in there with “path\to\putty.exe %1″, so for example if you took the default installation location it would be c:\progra~1\putty\putty.exe
Again, for your convenience i have a .reg file here, but it’ll only work if you installed PuTTY into the default location as above.
With all that done, restart your browser (you might have to restart your computer, I’m not sure), and give it a try. I’d create a html file with a link in it to telnet to your router <a href=”telnet://your.router.ip.address:23″>mummy!</a> kind of thing.
Assuming it all works, you will have many hours of happy remote labbing. Remember me when you’re earning super mega money won’t you?



You are the man!!
Glad you found it useful
[...] on from my earlier post about enabling putty as a telnet handler for ie7, a friend recently asked me about enabling a [...]
Hi,
Just like to add a few things.
1. Works in IE8.
2. Syntax has to be correct or won’t work for this
HKEY_CLASSES_ROOT\telnet\shell\open\command. (Watch the quotes and space.)
Path: “C:\Program Files\AbsoluteTelnet\program\AbsoluteTelnet.exe” “%1″
AbsoluteTelnet is my fav so I change the tutorial above to suit my needs.
Thanks, I learned something today
Hey NetworkTech, how did it work with IE8…
I’ve everything as per above -even the space and the quotes- but it doesn’t work for me.
IE8 gives the below error message:
The webpage cannot be displayed
Most likely cause:
•Some content or files on this webpage require a program that you don’t have installed.
What you can try:
Search online for a program you can use to view this web content.
Retype the address.
Go back to the previous page.
Internet Explorer 8 is very good because it is as stable as Opera. I hate the previous versions of IE like IE6 because it hangs frequently. ~
It is too bad that web browers don’t support an ssh://servername:port/ tag – that’s really what I want. But I’m wondering if I can hijack the telnet tag for that purpose? If I setup tags like:
telnet://servername:22/
And configure PuTTY such as you have done here, would it SSH instead of Telnet into “servername”? I suppose I could call “path\to\putty.exe -ssh …” to ensure that SSH was being used instead of telnet. Perhaps what I really want to do is make use of
putty -load “sessionname”
and then my URL would be more like:
telnet://sessionname/
Actually, I probably want to strip “telnet://” and the trailing slash out of %1 and then put that in as an argument to -load. Hmm. Something like this would be really nice in that I can save in the session all sorts of parameters (telnet vs. ssh, fonts, colors, scroll back buffer size, etc.).
Worked..+1 dude..