view · edit · history · print

Type "ssh://.." in your browser and launch putty

Paths should probably be changed in the scripts, The reason for the dirty perl hack is that PuTTY does not handle the full URL.

ssh.reg

 
REGEDIT4

[HKEY_CLASSES_ROOT\ssh]
@="URL:SSH Protocol"
"EditFlags"=dword:00000002
"URL Protocol"=""

[HKEY_CLASSES_ROOT\ssh\shell]

[HKEY_CLASSES_ROOT\ssh\shell\open]

[HKEY_CLASSES_ROOT\ssh\shell\open\command]
@="C:\\software\\perl0500\\bin\\perl v:\\putt0000\\ssh.pl %1"

ssh.pl

  
# Description: filter IP or hostname from typical host URL
#              "ssh://host_or_ip/" becomes "host_or_ip"

$IP=$ARGV[0];
$IP =~ s/ssh:\/\///; # remove prefix
$IP =~ s/\///; # remove suffix

#print "ssh to $IP "; # debug

#system("v:\\putt0000\\putty.exe -ssh $IP");
exec("v:\\putt0000\\putty.exe -ssh $IP"); 

admin · attr · attach · edit · history · print
Page last modified on March 30, 2006, at 01:55 PM