ssh-to-puttyssh-to-puttyIn Windows you can register “url handlers”. These are programs that are run when you try to open a URL (via Start->Run for example). “http://” for example is registered to Internet Explorer by default. “telnet://” also works. This is especially useful in combination with the URL-field of KeePass. Double-clicking on this field tries to “open” the specified URL.
However, “ssh://” is not a standard registered protocol. I’d like Putty to handle this. Also, “telnet://” gets you the standard windows telnet client instead of putty. Putty can be called with command line arguments. Supplying the “telnet://” url as a parameter works, but “ssh://” does not.
Hence, I wrote a very small wrapper program to accept “ssh://” URL’s and convert them to Putty command line arguments:
- Source code in C: ssh-to-putty.c
- Compiled Windows executable:
ssh-to-putty.exe(some virus-scanners seem to think this is a virus, exe is no longer available, please compile it yourself)
- Registry commands to set putty as telnet-handler: putty telnet url handler.reg
- Registry commands to set the wrapper as ssh-handler: putty ssh url handler.reg
- The registry commands assume Putty and the wrapper are installed in C:\Progs\SSH. If this is not the case, you need to change the .reg-files accordingly
- The wrapper-program assumes putty.exe to be in the same directory as itself