Running putty in one click in Chrome (Windows OS).
- Download an extension and put into directory C:\chrome_extensions\chromeputty
- Download or put your existing
putty.exe
into directory C:\chrome_extensions\chromeputty - Register and handle ssh protocol by running
bat.reg
:
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:\\chrome_extensions\\chromeputty\\putty_util.bat\" %1"
- Open your chrome web browser extensions page
chrome://extensions/
: turn on developer mode (toggle), load extension and turn it on - Open any page with ip-address
1.2.3.4
on it and hit Ctrl + Alt - Then ip-address will be replaced with highlighted pink link:
<a style="background-color: #e2b0b0;" class="webputty" href="ssh://1.2.3.4" target="_blank">1.2.3.4</a>
- Click the link
- Link runs
C:\chrome_extensions\chromeputty\putty_util.bat
:
@echo off
set var=%1
set extract=%var:~6,-1%
start /B C:\\chrome_extensions\\chromeputty\\putty.exe %extract%
C:\chrome_extensions\chromeputty\putty_util.bat
runsC:\chrome_extensions\chromeputty\putty.exe
with forwarded ip-address- Return to your page and hit once again Ctrl+Alt then link will be replaced with text ip-address
Also you can:
- Customize Hotkeys in
script.js
- Customize
permitted scheme
(details https://developer.chrome.com/extensions/match_patterns):
"matches": ["*://*.mysite.net/*"],