Windows – Registering Putty for SSHS:// custom URI Scheme

One of things that I do to simplify my job is to maintain a local webpage listing servers that I can SSH into.  With Windows, I can register the sshs:// URI scheme to putty.exe Windows executable.  Any links starting with sshs:// will be opened up automatically using Putty.

All the servers require public/private key to successfully complete the connection, so I create a custom session inside the Putty Configuration app, which sets the private key to use.  For example, you can see the the one for ‘zappy’ session.


Create a Windows registry file: register_ssh_session_putty.reg
Copy and paste below registry entries.
Double-click on the reg file to insert into Windows Registry.

Windows Registry Editor Version 5.00

@="URL:SSHS Protocol"
"URL Protocol"=""



@="C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -Command \"$uri = [System.Uri]'%1';&\"${env:ProgramFiles(x86)}\\PuTTY\\putty.exe\" -load $uri.UserInfo \""

In the local webpage that you maintain, use sshs:// links
To start the putty session named zappy

This entry was posted in Linux, Programming. Bookmark the permalink.