Created
July 8, 2015 14:34
-
-
Save vbfox/a733de9627fe8d26bb80 to your computer and use it in GitHub Desktop.
Open putty on ssh links
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\ssh] | |
@="URL:SSH Protocol" | |
"URL Protocol"="" | |
[HKEY_CLASSES_ROOT\ssh\shell] | |
[HKEY_CLASSES_ROOT\ssh\shell\open] | |
[HKEY_CLASSES_ROOT\ssh\shell\open\command] | |
@="C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -Command \"$val='%l'; $val = $val.TrimEnd('/');if ($val.StartsWith('ssh://')) { $val = $val.SubString(6) }; & 'C:\\Program Files (x86)\\PuTTY\\putty.exe' \"$val\"\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment