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.



@="URL:SSH Protocol"
"URL Protocol"=""



@="C:\\software\\perl0500\\bin\\perl v:\\putt0000\\ %1"

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

$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